|
From: | Hermann Peifer |
Subject: | Re: /usr/bin/printf: invalid universal character name |
Date: | Thu, 15 May 2008 21:25:38 +0200 |
User-agent: | Thunderbird 2.0.0.12 (X11/20080227) |
Bruno Haible wrote:
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
Many thanks for your time and explanations. It looks like there is no bug and we can close this case.
Regards, Hermann
[Prev in Thread] | Current Thread | [Next in Thread] |