[MPlayer-dev-eng] [PATCH] Use _NET_WM_NAME for UTF-8 title in X11 if supported

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Jun 21 18:30:09 CEST 2006


On Wed, Jun 21, 2006 at 01:52:35PM +0400, Sergey Pinaev wrote:
> On Wed, 21 Jun 2006 11:40:25 +0200
> Reimar Doeffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> > And have two setlocale call for each printf, sprintf, snprintf, fprintf,
> > scanf, scanf, strcasecmp and lots of other functions. Probably > 500k of
> > code size, and for what?
> 
> Nope. If you always want dots instead of locale's separators - you have
> _one_ call at the beginning of main().

Seriously, you completely missed the point. Most applications have
strings for user representation and for other stuff like config files
etc.
Your approach is _exactly_ what caused endless trouble for MPlayer.
As arrogant as it is, to end the discussion I hereby give everyone two choices:
1) Accept that setlocale is and will stay forbidden anywhere outside
mp_msg.c
2) Become maintainer for all this internationalization and string
conversion stuff.

And actually
1.5) nl_langinfo is available in the global mp_msg_charset variable so
it is possible to use iconv.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list