[MPlayer-dev-eng] [PATCH] Fix dll loading with Turkish locales

Ismail Donmez ismail at kde.org.tr
Wed Jan 19 13:57:15 CET 2005


Hi all,

this patch is based on an old patch by S. Çağlar Onur <caglar at uludag.org.tr> 
with minor modifications.

The problem:

In turkish locale toupper("i) != I and tolower("I") != i . This problem makes 
mplayer crash when an external dll needs to be loaded for audio and/or video. 
I tried to get a sensible backtrace but al I get was "??" lines. I suspect 
crash happens inside the dll.

The solution:

Set LC_ALL to "C" before opening audio/video decoder so character conversions 
doesn't use locale settings. This have no effect on !Turkish locales where 
the above problem doesn't apply.

I attached a patch against latest cvs. Please apply.

Cheers,
ismail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: turkish.patch
Type: text/x-diff
Size: 1899 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050119/b3f7b5ad/attachment.patch>


More information about the MPlayer-dev-eng mailing list