From 1d46419fdea9ee80c5856e2839643c78e58b9867 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 22 Nov 2016 01:45:56 +0000 Subject: 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 --- tests/misc/printf-quote.sh | 4 ++-- 1 file 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 -- cgit v1.2.3-54-g00ecf