GNU bug report logs - #12192
multibyte: tr: TR operates on bytes, not characters

Previous Next

Package: coreutils;

Reported by: Michael Stummvoll <michael <at> stummi.org>

Date: Mon, 13 Aug 2012 13:02:02 UTC

Severity: wishlist

Merged with 9365, 9569, 10880, 13362

Full log


Message #17 received at 12192 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eric Blake <eblake <at> redhat.com>
Cc: 12192 <at> debbugs.gnu.org, Michael Stummvoll <michael <at> stummi.org>
Subject: Re: bug#12192: tr - bytes vs characters
Date: Tue, 14 Aug 2012 00:44:24 -0700
On 08/13/2012 10:34 PM, Eric Blake wrote:
> 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.

All this is absolutely correct; but still, if the issue is merely POSIX
conformance, these glibc-based GNU/Linux systems do conform to POSIX,
since the POSIX-conformance document for these systems can state that
the supported locales are merely the single-byte locales.  Admittedly this
is legal hairsplitting, but if POSIX compliance is the issue
then one is in legal-hairsplitting mode already....




This bug report was last modified 6 years and 249 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.