Subject: bug#12192: tr - bytes vs characters

From: Eric Blake <[email-masked]>
Date: Mon, 13 Aug 2012 23:34:16 -0600

On 08/13/2012 08:45 PM, Paul Eggert wrote:
> On 08/13/2012 06:54 AM, Eric Blake wrote:
>> POSIX _does_ require multi-byte support
> 
> The last time I checked, POSIX did not require
> the implementation to provide any multibyte locales.
> Has this changed?

Fair enough - POSIX does not require the existence of a multibyte
locale; an embedded system that provides only single-byte encodings can
still be POSIX-compliant.  But POSIX _does_ require that tr be
locale-aware, and therefore if an implementation provides multibyte
locales (which most desktop glibc-based GNU/Linux systems do), then tr
should honor those locales, including multibyte character support.

> 
> But yes, the main thing is for someone to contribute
> correct, easy-to-maintain, and efficient code.

We're in violent agreement on this point :)

-- 
Eric Blake   [email-masked]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org