* tests/dd/conv-case.sh: Use octal instead.
* tests/ls/hyperlink.sh: Likewise.
* tests/sort/sort-locale.sh: Likewise.
if test "$(locale charmap 2>/dev/null | sed 's/iso/ISO-/')" = ISO-8859-1; then
# Case conversion should work on all single byte locales.
# Check it with é and É in ISO 8859-1.
- printf '\xe9\n' > input-lower
- printf '\xc9\n' > input-upper
+ printf '\351\n' > input-lower
+ printf '\311\n' > input-upper
# Check the output when all input characters are already the correct case.
dd if=input-lower of=output-lower conv=lcase || fail=1
cd testdir
ls_encoded "testdir" > ../exp.t || framework_failure_
for f in 'an#chor' 'back\slash' 'col:on' 'encoded%3Fquestion' \
- "$(printf 'invalidutf8\xe9')" 'ques?tion' 'sp ace' 'utf8á'; do
+ "$(printf 'invalidutf8\351')" 'ques?tion' 'sp ace' 'utf8á'; do
touch "$f" || framework_failure_
ls_encoded "$f" >> ../exp.t || framework_failure_
done
if test "$(locale charmap 2>/dev/null | sed 's/iso/ISO-/')" = ISO-8859-1; then
check_hard_collate 'a_a' 'a b' # underscore and space considered equal
check_hard_collate 'aaa' 'BBB' # case insensitive ordering
- check_hard_collate "$(printf 'aa\xe9')" 'aaf' # é comes before f
+ check_hard_collate "$(printf 'aa\351')" 'aaf' # é comes before f
fi
export LC_ALL=$LOCALE_FR_UTF8