summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-11-22 01:45:56 +0000
committerPádraig Brady <P@draigBrady.com>2016-11-22 20:04:25 +0000
commit1d46419fdea9ee80c5856e2839643c78e58b9867 (patch)
treedcaf19089773c311be111354d8d68630ae17b88b
parent055b08ff7853c7c9ab791643047b1b163a227013 (diff)
downloadcoreutils-1d46419fdea9ee80c5856e2839643c78e58b9867.tar.xz
tests: fix false failure with FreeBSD 11 multibyte quoting
* tests/misc/printf-quote.sh: FreeBSD 11 was seen to treat \u0378 as a printable character. Therefore change to using the \u0081 C1 control character. We use the UTF-8 representation because our printf implementation explicitly disallows \u0081 as input. Reported by Assaf Gordon
-rwxr-xr-xtests/misc/printf-quote.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/printf-quote.sh b/tests/misc/printf-quote.sh
index 43b6dcc84..02ce0c2a2 100755
--- a/tests/misc/printf-quote.sh
+++ b/tests/misc/printf-quote.sh
@@ -42,13 +42,13 @@ if test "$LOCALE_FR_UTF8" != "none"; then
#printable multi-byte
LC_ALL=$f $prog '%q\n' 'áḃç' > out
#non-printable multi-byte
- LC_ALL=$f $prog '%q\n' "$(LC_ALL=$f $prog '\u0378')" >> out
+ LC_ALL=$f $prog '%q\n' "$($prog '\xc2\x81')" >> out
#printable multi-byte in C locale
LC_ALL=C $prog '%q\n' 'áḃç' >> out
)
cat <<\EOF > exp || framework_failure_
áḃç
-''$'\315\270'
+''$'\302\201'
''$'\303\241\341\270\203\303\247'
EOF
compare exp out || fail=1