On 14/08/2022 01:41, наб wrote:
Package: coreutils
Version: 8.32-4+b1
Severity: normal
Dear Maintainer,
Consider:
-- >8 --
$ /bin/printf %d\\n \'ą
/bin/printf: warning: �: character(s) following character constant have been
ignored
196
$ /bin/printf %d\\n \'я
/bin/printf: warning: �: character(s) following character constant have been
ignored
209
-- >8 --
Compare bash:
-- >8 --
$ printf %d\\n \'ą
261
$ printf %d\\n \'я
1103
-- >8 --
Compare POSIX (Issue 7):
If the leading character is a single-quote or double-quote, the value
shall be the numeric value in the underlying codeset of the character
following the single-quote or double-quote.
Compare printf.1:
[no data (??)]
Fixed in version 9.1 with:
https://github.com/coreutils/coreutils/commit/6367cfe5f
$ /bin/printf --version | head -n1
printf (GNU coreutils) 9.1
$ /bin/printf %d\\n \'я
1103
cheers,
Pádraig