From: Jonathan Nieder Date: Tue, 21 Dec 2010 20:27:55 +0000 (-0600) Subject: t0050: fix printf format strings for portability X-Git-Tag: v1.7.4-rc0~3^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=77e572653b5089c9e3639fe4088f59e4cfef4eea;p=git.git t0050: fix printf format strings for portability Unlike bash and ksh, dash passes through hexadecimal \xcc escapes. So when run with dash, these tests *pass* (since '\xcc' is a perfectly reasonable filename) but they are not testing what was intended. Use octal escapes instead, in the spirit of v1.6.1-rc1~55^2 (2008-11-09). Reported-by: Ramsay Jones Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index 41df6bcf2..07357ee1f 100755 --- a/t/t0050-filesystem.sh +++ b/t/t0050-filesystem.sh @@ -4,8 +4,8 @@ test_description='Various filesystem issues' . ./test-lib.sh -auml=`printf '\xc3\xa4'` -aumlcdiar=`printf '\x61\xcc\x88'` +auml=$(printf '\303\244') +aumlcdiar=$(printf '\141\314\210') case_insensitive= unibad=