aboutsummaryrefslogtreecommitdiff
path: root/t/t0050-filesystem.sh
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-12-21 14:27:55 -0600
committerJunio C Hamano <gitster@pobox.com>2010-12-21 13:26:32 -0800
commit77e572653b5089c9e3639fe4088f59e4cfef4eea (patch)
tree57a8456ae8c0ec4a7e77ee0057c2a3208feb922a /t/t0050-filesystem.sh
parent00f66f0e4913110e19972a71a150a7b9d1bfd02f (diff)
downloadgit-77e572653b5089c9e3639fe4088f59e4cfef4eea.tar.gz
git-77e572653b5089c9e3639fe4088f59e4cfef4eea.tar.xz
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 <ramsay@ramsay1.demon.co.uk> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0050-filesystem.sh')
-rwxr-xr-xt/t0050-filesystem.sh4
1 files changed, 2 insertions, 2 deletions
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=