[FFmpeg-devel] [PATCH] configure's to_lower and to_upper fix on *bsd
Fri Feb 8 21:48:56 CET 2008
On Fri, Feb 08, 2008 at 02:22:32PM -0500, Rich Felker wrote:
> On Fri, Feb 08, 2008 at 08:07:43PM +0100, Reimar D?ffinger wrote:
> > On Fri, Feb 08, 2008 at 01:46:21PM -0500, Rich Felker wrote:
> > > This is absolutely wrong. If the locale is Turkish then I will get
> > > mapped to ? rather than i. Instead use:
> > >
> > > tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
> > Given our experience so far I am tempted to bet we will find some idiot
> > who broke even that with some tr implementation (though BSD surprisingly
> > gets it right)...
> > Everyone please look at the wonders of BSD tr:
> > > echo "stuvw" | tr '[a-z]' '[A-Z]' | hexdump -C
> > > 00000000 53 55 da 57 58 0a |SU?X.|
> > Magnificent, isn't it (jep, that SUX quite hits the nail on the head)...
> The issue is your locale.
Yes, the issue is the missing uppercase ? it seems (though when children
learn the alphabet that character is always sorted after all others, not
after the s like in the dictionaries, no consistency there ;-) )...
And I now found that a few lines above it does mention some of the
problems with ranges.
Though it seems to me that this behaviour means that unless you set the
locale before, range expressions are just useless because there is no
way to use them reliably.
Oh well, is there anyone who knows a problem with the long way to write
it? Or can we just use that?
More information about the ffmpeg-devel