Re: [gtkmm] behavior modification of input/output functions



Le mer 21/07/2004 à 11:23, Tassos Bassoukos a écrit :
> On Wed, 2004-07-21 at 11:43, Florent Teichteil wrote:
> > Thank you for your advice !
> > 
> > I have added the code 'setlocale(LC_ALL, "C");' just after 'Gtk::Main
> > m(&argc, &argv);' and all the numbers are well parsed.
> 
> Hmmm... I believe that this solution might interfere with
> internationalization / localization of your program.
> 

Yes, my program is now in US english but it is better since the
exceptions of the library that I use only are in US english...

> > Does gtkmm initialize the language to the local setting ?
> 
> It is customarily set by the display manager (xdm, gdm or kdm) for X
> sessions. 

It is surprising... If I add the code 'setlocale(LC_ALL, "C");' BEFORE
'Gtk::Main m(&argc, &argv);', the numbers are european-like parsed so
that I thought that gtkmm was responsible for changing the the
application's language to the local setting.

> 
> Tassos




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