Skip to content

Commit 77e5726

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 00f66f0 commit 77e5726

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t0050-filesystem.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ test_description='Various filesystem issues'
44

55
. ./test-lib.sh
66

7-
auml=`printf '\xc3\xa4'`
8-
aumlcdiar=`printf '\x61\xcc\x88'`
7+
auml=$(printf '\303\244')
8+
aumlcdiar=$(printf '\141\314\210')
99

1010
case_insensitive=
1111
unibad=

0 commit comments

Comments
 (0)