bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /usr/bin/printf: invalid universal character name


From: Bruno Haible
Subject: Re: /usr/bin/printf: invalid universal character name
Date: Thu, 15 May 2008 12:42:19 +0200
User-agent: KMail/1.5.4

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]