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

Adam Tlałka atlka at pg.gda.pl
Wed Jun 21 12:03:48 CEST 2006


On Wed, 21 Jun 2006 11:52:35 +0200, Sergey Pinaev <dfo at antex.ru> 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().
>
  To be precise to obtain designed locale functionality you need two calls:

main()
{
  setlocale(LC_ALL, "");
  setlocale(LC_NUMERIC, "C");
  .
  .
  .
}

Using only setlocale(LC_NUMERIC, "C") sets only one category but all other  
stay
with their default which is "C" so it is equal to not using setlocale() at  
all.

Regards
-- 
Adam Tlałka       mailto:atlka at pg.gda.pl    ^v^ ^v^ ^v^
Computer Center,  Gdańsk University of Technology, Poland
PGP public key:   finger atlka at sunrise.pg.gda.pl



More information about the MPlayer-dev-eng mailing list