Re: #60606 - automatically set locale



Hi,

Owen Taylor <otaylor redhat com> writes:

>  - Automatically do the rest of the stuff (initializing X for 
>    the locale) that we do in gtk_set_locale() in gtk_init() 
>    even if you call gtk_disable_setlocale(), so you can 
>    do:
> 
>     gtk_disable_setlocale();
> 
>     setlocale (LC_ALL, "");
>     setlocale (LC_NUMERIC, "C");
>  
>     gtk_init();
> 
>    And it will work properly.

am I correct to assume that

  gtk_init();
  setlocale (LC_NUMERIC, "C");

will work properly too? If so, I see no problems with the change.


Salut, Sven




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]