[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12192: tr - bytes vs characters
From: |
Eric Blake |
Subject: |
bug#12192: tr - bytes vs characters |
Date: |
Mon, 13 Aug 2012 23:34:16 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
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 address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature