On MacOS, ensure the application locale is set to the system default

Fixes #11046
This commit is contained in:
James Jackson 2023-01-09 23:18:07 +00:00 committed by Jon Evans
parent a5e6f11682
commit 8f2f53192b
1 changed files with 6 additions and 0 deletions

View File

@ -394,6 +394,12 @@ void PGM_BASE::BuildArgvUtf8()
bool PGM_BASE::InitPgm( bool aHeadless, bool aSkipPyInit, bool aIsUnitTest ) bool PGM_BASE::InitPgm( bool aHeadless, bool aSkipPyInit, bool aIsUnitTest )
{ {
#if defined( __WXMAC__ )
// Set the application locale to the system default
wxLocale loc;
loc.Init();
#endif
// Just make sure we init precreate any folders early for later code // Just make sure we init precreate any folders early for later code
// In particular, the user cache path is the most likely to be hit by startup code // In particular, the user cache path is the most likely to be hit by startup code
PATHS::EnsureUserPathsExist(); PATHS::EnsureUserPathsExist();