tr(1) buggy with de_DE.ISO8859-1(5) locale?

Kris Kennaway kris at obsecurity.org
Fri Feb 3 14:06:28 PST 2006


On Fri, Feb 03, 2006 at 10:58:09PM +0100, Martin wrote:
> Dan Nelson wrote:
> >tr uses the collation sequence when expanding ranges, so the real
> >problem is that the lowercase range "s-w" expands to "s??tu????????vw", and
> >the uppercase range "S-W" expands to "STU????????VW", which is a smaller
> >set.
> >
> >An alternative would be to use "tr stuvw STUVW" or "tr stu????????vw
> >STU????????VW".
> 
> My real problem is that I could not figure out why ffmpeg-devel did not
> compile with MPEG-support, than I found this in its config.h:
> 
> #define CONFIG_OGGWORBIS_ENCODER 1
> #define CONFIG_OGGWORBIS_DECODER 1
> #define CONFIG_OGGUHEORA_ENCODER 1
> #define CONFIG_OGGUHEORA_DECODER 1
> #define CONFIG_YWID_ENCODER 1
> #define CONFIG_MPEG1WIDEO_ENCODER 1
> #define CONFIG_MPEG2WIDEO_ENCODER 1
> #define CONFIG_RW10_ENCODER 1
> #define CONFIG_RW20_ENCODER 1
> #define CONFIG_MSMPEG4W1_ENCODER 1
> #define CONFIG_MSMPEG4W2_ENCODER 1
> #define CONFIG_MSMPEG4W3_ENCODER 1
> #define CONFIG_XMW1_ENCODER 1
> #define CONFIG_XMW2_ENCODER 1
> #define CONFIG_SWQ1_ENCODER 1
> #define CONFIG_PGM????W_ENCODER 1
> #define CONFIG_H??FF????W_ENCODER 1
> #define CONFIG_FFWH??FF_ENCODER 1
> #define CONFIG_ASW1_ENCODER 1
> #define CONFIG_ASW2_ENCODER 1
> 
> etc. etc.
> 
> I guess I have to set root user back to "C" locale. :(
> I can imagine that many people are using "tr a-z A-Z"
> (or similar) in configuration-scripts.

There is a PR about this that contains a patch you could try.
However, I don't know what other surprises may be lurking with non-C
locales, and I need to schedule a full package build to find out.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060203/89cb320d/attachment.bin


More information about the freebsd-stable mailing list