[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnome-devel-list
Subject:    gnome 1.2, localisation and C++ streams
From:       Jean-Marc Valin <jean-marc.valin () hermes ! usherb ! ca>
Date:       2000-05-26 1:03:34
Message-ID: 392DCD66.5E911369 () hermes ! usherb ! ca
[Download RAW message or body]

Hi,

I have just upgraded to gnome 1.2 and noticed it caused very undesirable effects
with C++ streams. My language settings are set to french. I noticed that calling
gnome_init(...) changes the way C++ streams print and parse decimal numbers. For
instance, 
cout << 1.2 << endl;
causes "1,2" to be printed, instead of "1.2". Though the comma (,) is the
correct decimal mark in french, this breaks nearly everything that reads/parse
floating point numbers. Is this supposed to be a feature (if so, I call it a
stupid feature)? Any way to revert that (other that going back to gnome 1.0)?

	Jean-Marc Valin


-- 
Jean-Marc Valin
Universite de Sherbrooke - Genie Electrique
valj01@gel.usherb.ca


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic