Re: [gtkextra] Re: Problems with gtk_set_locale and gnome_init
- From: Adrian Feiguin <feiguin magnet fsu edu>
- To: Jose Eusebio Roza Pando <jeroza alu uah es>
- Cc: mk daveg com, gtk-app-devel-list gnome org, scigraphica-gtkextra lists sourceforge net
- Subject: Re: [gtkextra] Re: Problems with gtk_set_locale and gnome_init
- Date: Tue, 24 Oct 2000 10:16:18 -0400 (EDT)
Any idea how to fix this in the PS generator? Should we use an
alternative to fpritf? Disable set_locale while printing?
Saludos,
<ADRIAN>
On Tue, 24 Oct 2000, Jose Eusebio Roza Pando wrote:
Ahhh! This is the problem. The ps generation engine use fprintf and
it generates the ps file with a comma instead of a decimal point
(in Spanish machines).
Thank you very much for your help Martin,
Eusebio
mk daveg com escribió:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
Scigraphica-gtkextra mailing list
Scigraphica-gtkextra lists sourceforge net
http://lists.sourceforge.net/mailman/listinfo/scigraphica-gtkextra
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]