From: Pádraig Brady Date: Tue, 22 Nov 2016 01:45:56 +0000 (+0000) Subject: tests: fix false failure with FreeBSD 11 multibyte quoting X-Git-Tag: v8.26~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d46419fdea9ee80c5856e2839643c78e58b9867;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/misc/printf-quote.sh b/tests/misc/printf-quote.sh index 43b6dcc84e..02ce0c2a25 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