]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure with FreeBSD 11 multibyte quoting
authorPádraig Brady <P@draigBrady.com>
Tue, 22 Nov 2016 01:45:56 +0000 (01:45 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 22 Nov 2016 20:04:25 +0000 (20:04 +0000)
* 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

index 43b6dcc84ea107fb3eb3fd5c51d5eeffa74c7c77..02ce0c2a25b53fb870122ad894d88cafe002deac 100755 (executable)
@@ -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