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

Reimar Döffinger Reimar.Doeffinger
Fri Feb 8 20:07:43 CET 2008


Hello,
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)...

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list