[FFmpeg-devel] [PATCH] configure's to_lower and to_upper fix on *bsd

Rich Felker dalias
Fri Feb 8 20:21:00 CET 2008


On Fri, Feb 08, 2008 at 07:55:39PM +0100, Reimar D?ffinger wrote:
> Hello,
> On Fri, Feb 08, 2008 at 04:02:26PM +0100, Pierre d'Herbemont wrote:
> > here, on Mac OS X, (should be a BSD issue):
> 
> My BSD man page clearly says: "i.e., the command ``tr [a-z] [A-Z]'' will
> work"
> 
> > $ echo "hello z" | tr '[a-z]' '[A-Z]'
> > HELLO ]
> 
> And I can't see how this behaviour could make even remotely any sense.

Range expressions such as a-z take place in collation order, and I'm
not sure if they're even specified to work in non-C locale anyway (I
know they're unspecified for regex but they might be specified for tr,
I forget..)

Anyway this sort of behavior happens when there are different numbers
of characters in the ranges a-z and A-Z.

> Since we already work around Solaris it may be worth considering, but
> normally I'd say such a serious bug is really something that should be
> fixed on your system instead.

Not a system bug.

Rich




More information about the ffmpeg-devel mailing list