From: Pádraig Brady Date: Tue, 19 Nov 2024 19:57:53 +0000 (+0000) Subject: tests: printf: avoid iconv issues on macOS X-Git-Tag: v9.6~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede23f4427a6ac75e5374229fad5a1466d204de6;p=thirdparty%2Fcoreutils.git tests: printf: avoid iconv issues on macOS * tests/printf/printf-cov.pl: Since gnulib commit v1.0-1103-ge5b82978e2 we avoid iconv() on ASCII range 0x32 - 0x7F inclusive, so adjust this test to fall within that range. Addresses https://bugs.gnu.org/74428 --- diff --git a/tests/printf/printf-cov.pl b/tests/printf/printf-cov.pl index f2677231f5..79038365d6 100755 --- a/tests/printf/printf-cov.pl +++ b/tests/printf/printf-cov.pl @@ -70,8 +70,8 @@ my @Tests = {ERR=>"$prog: missing hexadecimal number in escape\n"}], ['U-bad-hex', q('\U0000'), {EXIT=>1}, {ERR=>"$prog: missing hexadecimal number in escape\n"}], - ['u4', q('\u0030'), {OUT=>"0"}], - ['U8', q('\U00000030'), {OUT=>"0"}], + ['u4', q('\u0032'), {OUT=>"2"}], + ['U8', q('\U00000032'), {OUT=>"2"}], ['u-invalid', q('\ud800'), {EXIT=>1}, {ERR=>"$prog: invalid universal character name \\ud800\n"}], ['u-missing', q('\u'), {EXIT=>1},