Re: builtin printf not printing unicode characters?
From:
pk
Subject:
Re: builtin printf not printing unicode characters?
Date:
Tue, 13 May 2008 09:55:29 +0200
On Sunday 11 May 2008 04:16, Chet Ramey wrote:
> pk wrote:
>> The man page says that bash builtin printf supports the standard
>> printf(1) formats. But it seems that \uHHHH is not working:
>>
>> $ /usr/bin/printf '\u212b\n'
>> Å
>> $ printf '\u212b\n'
>> \u212b
>>
>> Am I doing something wrong here?
>
> The `\u' format string escape is not standard. I will consider it for a
> future enhancement.
Ah ok, I was fooled by the fact that printf(1) on my system does include the
\u format.
Thanks