* git latest master: a6828f536119c3288b0be772e3870f1a464d017d -- error in t0050-filesystem.sh on Solaris
@ 2008-03-12 13:49 Whit Armstrong
2008-03-12 14:53 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Whit Armstrong @ 2008-03-12 13:49 UTC (permalink / raw)
To: git
xs5-trd-p1.grn:warmstro> uname -a
SunOS xs5-trd-p1.grn.tudor.com 5.9 Generic_118558-38 sun4u sparc
SUNW,Sun-Fire-V240 Solaris
the Unrecognized switch: -O is from the perl call:
++ perl -CO -e 'print pack("U",0x00E4)'
Unrecognized switch: -O (-h will show valid options).
+ auml=
++ perl -CO -e 'print pack("U",0x0061).pack("U",0x0308)'
Unrecognized switch: -O (-h will show valid options).
+ aumlcdiar=
here is the output log:
xs5-trd-p1.grn:warmstro> bash t0050-filesystem.sh -v -i
Unrecognized switch: -O (-h will show valid options).
Unrecognized switch: -O (-h will show valid options).
* expecting success:
test_case=test_expect_success
test_unicode=test_expect_success
mkdir junk &&
echo good >junk/CamelCase &&
echo bad >junk/camelcase &&
if test "$(cat junk/CamelCase)" != good
then
test_case=test_expect_failure
say "will test on a case insensitive filesystem"
fi &&
rm -fr junk &&
mkdir junk &&
>junk/"$auml" &&
case "$(cd junk && echo *)" in
"$aumlcdiar")
test_unicode=test_expect_failure
say "will test on a unicode corrupting filesystem"
;;
*) ;;
esac &&
rm -fr junk
t0050-filesystem.sh: junk/: Is a directory
* FAIL 1: see if we expect
test_case=test_expect_success
test_unicode=test_expect_success
mkdir junk &&
echo good >junk/CamelCase &&
echo bad >junk/camelcase &&
if test "$(cat junk/CamelCase)" != good
then
test_case=test_expect_failure
say "will test on a case insensitive filesystem"
fi &&
rm -fr junk &&
mkdir junk &&
>junk/"$auml" &&
case "$(cd junk && echo *)" in
"$aumlcdiar")
test_unicode=test_expect_failure
say "will test on a unicode corrupting filesystem"
;;
*) ;;
esac &&
rm -fr junk
xs5-trd-p1.grn:warmstro>
and the main make test log:
*** t0050-filesystem.sh ***
Unrecognized switch: -O (-h will show valid options).
Unrecognized switch: -O (-h will show valid options).
* FAIL 1: see if we expect
test_case=test_expect_success
test_unicode=test_expect_success
mkdir junk &&
echo good >junk/CamelCase &&
echo bad >junk/camelcase &&
if test "$(cat junk/CamelCase)" != good
then
test_case=test_expect_failure
say "will test on a case insensitive filesystem"
fi &&
rm -fr junk &&
mkdir junk &&
>junk/"$auml" &&
case "$(cd junk && echo *)" in
"$aumlcdiar")
test_unicode=test_expect_failure
say "will test on a unicode corrupting filesystem"
;;
*) ;;
esac &&
rm -fr junk
* ok 2: setup case tests
* ok 3: rename (case change)
* ok 4: merge (case change)
* FAIL 5: setup unicode normalization tests
test_create_repo unicode &&
cd unicode &&
touch "$aumlcdiar" &&
git add "$aumlcdiar" &&
git commit -m initial
git tag initial &&
git checkout -b topic &&
git mv $aumlcdiar tmp &&
git mv tmp "$auml" &&
git commit -m rename &&
git checkout -f master
* FAIL 6: rename (silent unicode normalization)
git mv "$aumlcdiar" "$auml" &&
git commit -m rename
* FAIL 7: merge (silent unicode normalization)
git reset --hard initial &&
git merge topic
* failed 4 among 7 test(s)
gmake[1]: *** [t0050-filesystem.sh] Error 1
gmake[1]: Leaving directory `/home/warmstro/dvl.whit/git/t'
gmake: *** [test] Error 2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: git latest master: a6828f536119c3288b0be772e3870f1a464d017d -- error in t0050-filesystem.sh on Solaris
2008-03-12 13:49 git latest master: a6828f536119c3288b0be772e3870f1a464d017d -- error in t0050-filesystem.sh on Solaris Whit Armstrong
@ 2008-03-12 14:53 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2008-03-12 14:53 UTC (permalink / raw)
To: Whit Armstrong; +Cc: git
On Wed, Mar 12, 2008 at 09:49:25AM -0400, Whit Armstrong wrote:
> xs5-trd-p1.grn:warmstro> uname -a
> SunOS xs5-trd-p1.grn.tudor.com 5.9 Generic_118558-38 sun4u sparc
> SUNW,Sun-Fire-V240 Solaris
>
> the Unrecognized switch: -O is from the perl call:
>
> ++ perl -CO -e 'print pack("U",0x00E4)'
> Unrecognized switch: -O (-h will show valid options).
> + auml=
> ++ perl -CO -e 'print pack("U",0x0061).pack("U",0x0308)'
> Unrecognized switch: -O (-h will show valid options).
> + aumlcdiar=
Yes, perl 5.005 doesn't understand -CO. You can replace that with
"binmode STDOUT, ':utf8'", but then you will find that it also doesn't
understand "U" as a pack specifier. :)
While the perl code nicely shows what is going on, perhaps it would be
simpler to just do something like:
auml=`printf '\xc3\xa4'`
(which is the output that the perl gives on my Linux system).
-Peff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-12 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-12 13:49 git latest master: a6828f536119c3288b0be772e3870f1a464d017d -- error in t0050-filesystem.sh on Solaris Whit Armstrong
2008-03-12 14:53 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).