Use better suited locale for standard C locale under macOS

Replace systemLocale by locale identified by en_US_POSIX because
systemLocale doesn't provide any reasonable month and weekday names
unlike the latter and this will be important for the upcoming commit.
This commit is contained in:
utelle 2023-05-25 01:06:40 +02:00 committed by Vadim Zeitlin
parent 6d849f8211
commit 0c4e97b881

View file

@ -236,7 +236,7 @@ wxUILocaleImpl* wxUILocaleImpl::CreateStdC()
// wouldn't be much better as we'd still need a hack for it in GetName()
// because the locale names are always converted to lower case, while we
// really want to return "C" rather than "c" as the name of this one.
return new wxUILocaleImplCF([NSLocale systemLocale]);
return new wxUILocaleImplCF([NSLocale localeWithLocaleIdentifier:@"en_US_POSIX"]);
}
/* static */