Hi.
- I don’t have any LC_* environment variable set (got the list of all env vars with printenv)
- LANG env var is set to fr_FR.UTF-8
- Overriding the wx.App.InitLocale to do nothing doesn’t change anything
I also try some code you talk about in this post.
Running in a simple Python file (or in an IDLE window) the following code:
import locale
loc, enc = locale.getlocale()
print("loc=" + loc + " enc=" + enc)
gives : loc=fr_Fr enc=UTF-8
Calling the same code within the InitLocale method gives an error because loc is None (enc is correctly set to UTF-8)
As I’ve told in my previous post, the following code in C++ works fine:
wxLanguage lng = (wxLanguage)wxLocale::GetSystemLanguage();
wxString sLang = wxLocale::GetLanguageCanonicalName(lng);
The sLang variable is correctly set to fr_FR.
Regards
Xav’