Hello there.
On initializing my application I want to set the global locale to the system locale by calling wxLocale.Init();
But wxLocale.Init() only sets the C global locale to the system locale.
To set the C++ global locale as well I call: std::locale::global(std::locale(setlocale(LC_ALL, NULL)));
However when I use wxString::FromCDouble it now returns the format according to the system locale.
There's now difference anymore between wxString::FromDouble and wxString::FromCDouble.
It seems that FromCDouble is locale dependent.
Is this is a bug?
Regards,
Peter
wxString::FromCDouble is locale dependent Topic is solved
Re: wxString::FromCDouble is locale dependent
I haven't tried this myself, but if you can reproduce it with a small patch to the "minimal" sample, please open a bug report at http://trac.wxwidgets.org/
Use the source, Luke!
Re: wxString::FromCDouble is locale dependent
Ok, I've made a new ticket: #16343
Re: wxString::FromCDouble is locale dependent
Ticket #16343 has been fixed.