Re: Problems with gtk_set_locale and gnome_init



Jose Eusebio Roza Pando wrote:
I am writting a gtk+ app  with gtk+extra library. This is my problem:
- I use gtk_init and my app works and i can print ps files,
   but if i use gtk_set_locale too, i can not print ps files. The ps
   is generated but the viewer can not show it.

I am just learning to use locale support myself, but i have noticed that 
gtk_set_locale seems to affect the decimal separator in floating point 
output as well, so any fprintf(file,"%f\n",somevalue) may end up with
a comma instead of a decimal point in some locales. Much to my surprise, 
localized message files work without calling gtk_set_locale and setlocale.

Hope this helps,
Martin 
-- 
Dr. Martin Kroeker, daVeg GmbH Darmstadt  CAD/CAM/CAQ  mk daveg com
                      Precision Powered by Penguins




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