On 3/28/07, Shawn Walker <[EMAIL PROTECTED]> wrote:
On 28/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >Hi Casper,
> >I did try it. It works perfect!
> >Howerver, the issue is not about case convert. It's tr sending
> >unexpected output. sometimes even core dumped.
> >I 'm not sure SUN would take it as a bug or not.
> >e.g
> >echo EFG|/usr/xpg6/bin/tr '[EFG]' '[pBC]'
>
> Well, the fact that I get:
>
> Segmentation fault (core dumped)
>
>
> is pretty bad, I'd say. (And a bug).
>
> Unexpected output, OTOH, is not necessarily wrong.
>
> tr [A-Z] [a-z]
>
> only works in the C locale.
Which I don't think is true on Linux. I think it works on Linux, which
explains the porting trouble I've had.
/usr/bin/tr is one of the big problems in Solaris - the behaviour is
nonstandard and Sun declared long ago that fixes to support multibyte
locales are off limits because they would break backwards
compatibility.
Irek
_______________________________________________
opensolaris-discuss mailing list
[email protected]