diff --git a/tests/misc/printf-mb.sh b/tests/misc/printf-mb.sh index ad21dbe67..69ed3dfe8 100755 --- a/tests/misc/printf-mb.sh +++ b/tests/misc/printf-mb.sh @@ -34,17 +34,21 @@ if test "$LOCALE_FR_UTF8" != "none"; then LC_ALL=C $prog '%04x\n' "'$($prog '\xe1')" >>out 2>>err #valid multi-byte, with trailing LC_ALL=$f $prog '%04x\n' '"รก"' >>out 2>>err + #invalid multi-byte, with trailing + LC_ALL=$f $prog '%04x\n' "'$($prog '\xe1')'" >>out 2>>err ) cat <<\EOF > exp || framework_failure_ 00e1 00e1 00e1 00e1 +00e1 EOF compare exp out || fail=1 cat < exp_err printf: warning: ": character(s) following character constant have been ignored +printf: warning: ': character(s) following character constant have been ignored EOF compare exp_err err || fail=1 fi