[MPlayer-dev-eng] [PATCH] implement the setlocale feature

Uoti Urpala uoti.urpala at pp1.inet.fi
Mon Jun 19 14:41:43 CEST 2006


On Mon, 2006-06-19 at 12:55 +0800, Fengguang Wu wrote:
> The video server here returns GBK encoded mms urls. However, if utf8
> is the preferred "correct way", I can write a simple wrapper to
> do the GBK <-> UTF8 conversion.

If the URL is given on the command line then using nl_langinfo(CODESET)
makes sense. If however it comes directly from a remote server then
assuming it automatically matches the client's own locale is wrong. In
that case the charset to use for decoding should come from the user or
the server, and if neither gives a value then the default shouldn't
depend on the client's local charset.




More information about the MPlayer-dev-eng mailing list