Re: locale, gui vs command line question?

2010-01-31 Thread Allin Cottrell
On Sun, 31 Jan 2010, james morris wrote: > On 31/1/2010, "David Nečas" wrote: > > >> I've not had to deal with locales before, and I'm trying to understand > >> what GTK does to the locale when it initializes so I can work around it > >> and save data files as "C" locale. I've tried adding > >>

Re: locale, gui vs command line question?

2010-01-31 Thread james morris
On 31/1/2010, "David Nečas" wrote: >> I've not had to deal with locales before, and I'm trying to understand >> what GTK does to the locale when it initializes so I can work around it >> and save data files as "C" locale. I've tried adding >> setlocale(LC_NUMERIC, "C") to the start of main, and

Re: locale, gui vs command line question?

2010-01-31 Thread David Nečas
On Sun, Jan 31, 2010 at 04:10:00PM +, james morris wrote: > > A user has reported a problem with my app being unable to load a settings > file from the command line when the program runs without a GUI. > > The OPs locale uses commas as the decimal point and the programs use of > locale change

locale, gui vs command line question?

2010-01-31 Thread james morris
Hi, A user has reported a problem with my app being unable to load a settings file from the command line when the program runs without a GUI. The OPs locale uses commas as the decimal point and the programs use of locale changes when GTK is initialized. However, the same file which does not loa