bug-bash
[Top][All Lists]
Advanced

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

Re: BUG? RFE? printf lacking unicode support in multiple areas


From: Chet Ramey
Subject: Re: BUG? RFE? printf lacking unicode support in multiple areas
Date: Fri, 20 May 2011 09:32:19 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 5/20/11 3:31 AM, Linda Walsh wrote:
> 
> It appears printf in bash doesn't support unicode
> characters in a couple of ways:
> 
> 1) use of of the \uXXXX and \UXXXXXXXX escape sequences
> in the format string (16 and 32 bit Unicode values).

Bash-4.2 added support for the \u and \U format string escapes.
They're still not in Posix, but should go in for the next revision.

> 2) It doesn't handle the "%lc" conversion to print out wide
> characters.  

Also not in Posix, and of questionable value at the shell level.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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