Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 105241

Summary: mplayer doesn't respect current locale settings
Product: Gentoo Linux Reporter: Anton Romanov <theli.ua>
Component: [OLD] UnspecifiedAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anton Romanov 2005-09-08 04:32:05 UTC
mplayer doesn't respects current locale... so if help/help_mp-uk.h is in koi8-u
it will display it in koi8-u despite of current locale (utf8 for example)

can we do something like

cd ${S}/help
for i in *.h; do iconv $i -f $(cat $i.charset) > 1 && mv 1 $i;done

in ebuild?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 04:40:27 UTC
(In reply to comment #0)
> can we do something like
> 
> cd ${S}/help
> for i in *.h; do iconv $i -f $(cat $i.charset) > 1 && mv 1 $i;done

Hmm, and what will happen if you change your locales? :=)
Comment 2 Anton Romanov 2005-09-08 04:45:46 UTC
well, you'll have to remerge mplayer :)
Comment 3 Anton Romanov 2005-09-08 05:30:06 UTC
this can be done more right by passing 
--charset $(locale charset) 
to econf ...

though i don't really know how to get current locale's charest ...
anyway this can be done in such way 
echo $LANG | sed -e "s/[^\.]*\.//"

Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 17:49:38 UTC
Actually, this is a dupe.

*** This bug has been marked as a duplicate of 92017 ***