Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105241 - mplayer doesn't respect current locale settings
Summary: mplayer doesn't respect current locale settings
Status: RESOLVED DUPLICATE of bug 92017
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 04:32 UTC by Anton Romanov
Modified: 2005-09-08 17:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***