]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: printf: avoid iconv issues on macOS
authorPádraig Brady <P@draigBrady.com>
Tue, 19 Nov 2024 19:57:53 +0000 (19:57 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 19 Nov 2024 19:57:53 +0000 (19:57 +0000)
* 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

tests/printf/printf-cov.pl

index f2677231f566b51bcdf42052f0c4d334a5a17ec9..79038365d68de0d4a4c2fc633fe93337e086b078 100755 (executable)
@@ -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},