[MPlayer-dev-eng] LC_ALL=tr_TR problems with current mplayer code

D Richard Felker III dalias at aerifal.cx
Sat Dec 14 17:45:30 CET 2002


On Sat, Dec 14, 2002 at 04:15:38PM +0100, Attila Kinali wrote:
> Heyo,
> 
> On Tue, 10 Dec 2002 04:55:33 -0800 (PST)
> ismail donmez <voidcartman at yahoo.com> wrote:
> 
> > I found two places where LC_ALL=tr_TR causes problem
> > in mplayer compilation and/or execution. Maybe some
> > other locales affected to especially if uppercase of
> > "i" is not "I" but something else.
> 
> Well, Turkish is AFAIK the only language which has
> this problem (or is there any other language with
> this i/i-without-i-dot ?)
> 
>  
> > First problem is the vidix pci_db.awk script which
> > uses toupper() function without check so uppercase of
> > "i" doesnt become "I" and causes compilation error.I
> > think it can be solved by coding same script with
> > perl. Would this get accepted ? ( dependency on perl
> > to compile ) .
> 
> I cannot reproduce it. (Maybe because i dont have a fully
> turkish system). Can you please be more specific ?

IMHO toupper(c) should be replaced with ((c&64)?(c&~32):c).
Get rid of all this locale-dependent nonsense when dealing with data
which has nothing to do with locale (hardware id's, fourcc's, etc.).

Rich




More information about the MPlayer-dev-eng mailing list