]> git.ipfire.org Git - thirdparty/coreutils.git/commit
printf: with \U, support all valid unicode points
authorPádraig Brady <P@draigBrady.com>
Thu, 27 Oct 2022 14:17:07 +0000 (15:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 28 Oct 2022 12:45:27 +0000 (13:45 +0100)
commit0925e8a0f413ecf9004153d89b312b385b20d0ee
tree770853d22dd1be85c038ce280399ff16d80e8328
parent468c4fb10d08c54823a42f7aa0d7fe7e9552b2c3
printf: with \U, support all valid unicode points

Previously this was restricted to the C99 universal character subset,
which restricted most values <= 0x9F, as that simplifies the C lexer.
However printf(1) doesn't need this restriction.
Note also the bash builtin printf already supports all values <= 0x9F.

* src/printf.c (main): Relax the restriction on points <= 0x9F.
* doc/coreutils.texi (printf invocation): Adjust description.
* tests/misc/printf-cov.pl: Adjust accordingly.  Add new cases.
* NEWS: Mention the change in behavior.
Reported at https://bugs.debian.org/1022857
NEWS
doc/coreutils.texi
src/printf.c
tests/misc/printf-cov.pl