[MPlayer-dev-eng] [PATCH] implement the setlocale feature
joerg at britannica.bec.de
joerg at britannica.bec.de
Sun Jun 18 23:49:03 CEST 2006
On Sun, Jun 18, 2006 at 11:34:41PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> On Sunday, 18 June 2006 at 23:02, Ivan Kalvachev wrote:
> [...]
> > 2. What kind of bug is the setlocale() change fixing? Doesn't it beat
> > the purpose of using nl_langinfo()??
>
> I was under the impression that we didn't want any setlocale() calls
> at all because they break various things.
Calling setlocale is necessary to get the correct data from nl_langinfo,
e.g. the charset that is supposed to get written.
I know about the complains from Rich, but calling setlocale() once to
get the correct information and calling it for a second time to force
the C/POSIX locale avoids most of the issues.
Joerg
More information about the MPlayer-dev-eng
mailing list