[illumos-Developer] tr webrev

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Sun Sep 5 04:42:21 PDT 2010


"Garrett D'Amore" <garrett at nexenta.com> wrote:

> On Sun, 2010-09-05 at 02:29 +0200, Joerg Schilling wrote:
> > "Garrett D'Amore" <garrett at damore.org> wrote:
> > 
> > > So, we're faced with a choice.
> > >
> > > The NetBSD tr sounds like it works correctly in some cases that our
> > > current FreeBSD does not.
> > 
> > Could you please list these cases?
>
> Please see bug 121.  I've reproduced some of this unusual behavior
> myself as well.  There's no doubt that our FreeBSD based tr is
> defective.  What I don't know is whether the defect is trivial to fix or
> not.

Please read Bug 121, this may help you to understand why my fix is needed.
I guess you are talking about Bug 132.

> > 
> > > But from reading the review, NetBSD tr lacks support for some things
> > > that FreeBSD supposedly has.  Chiefly support for internationalization
> > > (which is important when dealing with multibyte locales or character
> > > sets that have different interpretations for character classes), and
> > > support for -C.
> > 
> > Implementing -C for multibyte character classes is not trivial.
>
> Agreed.  Although FreeBSD tr has it, and we have some private functions
> in libc to help out.

It seems that tr -c and tr -C both do not work correctly with FreeBSD tr.

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the Developer mailing list