On Mon, 6 Jul 2009, Krzysztof Foltman wrote: > Gabriel M. Beddingfield wrote: > >> That's odd, though. The old code was using strstream's and doing conversions >> implicitly with stream operators (<<, >>). Seems like that *should* have >> been >> respecting the locale, too... but perhaps it wasn't. > > strstream doesn't use the LC_* locale settings. You're probably better > off using strstream instead of QString or C functions like atof and > others, if you need locale-independent operation for reading/writing any > data files. > > Krzysztof
Thanks Krzysztof! I did some digging and found that C++ iostreams use the "C" locale by default (rather than a system locale). In contrast, many of the C standard library functions always consult the locale. FYI, QString sometimes defaults to "C" and sometimes to the system's locale. However, it is possible to (temporarily) set QLocale to the "C" locale. I'll look in to the options tonight. Peace, Gabriel ------------------------------------------------------------------------------ _______________________________________________ Hydrogen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hydrogen-devel
