Hermann Peifer wrote:
> Why does /usr/bin/printf "\x41\n" print 'A' and  /usr/bin/printf "\u0041\n"
> reports: 'invalid universal character name \u0041'

The former prints a byte with a particular value. It prints an 'A' on ASCII
systems and something else on EBCDIC systems.

The latter is meant to print a character 'A'. But to get the character 'A',
you can just write /usr/bin/printf "A\n" portably, everywhere. So there's no
need for the \u notation here.

Bruno



_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to