Hi,
as I’m streamlining base build under macOS I ran into a problem where the matching algorithms are not identical, exposed by searching for a language without a region in this test
CheckSupported(wxUILocale::FromTag("en"), "English");
Where unix builds are using locale_t TryCreateMatchingLocale(wxLocaleIdent& locId) which is happy having anything in a language when no region is given, macOS
uilocale.mm is more picky, as documented in
static wxUILocaleImplCF* wxUILocaleImplCF::Create(const wxLocaleIdent& locId)
// The following conditions have to be checked:
// - The language must always match.
// - The script must match, if it given,
-> // otherwise the region must match (even though it might be empty).
Is is ok to modify this in the unix sense ? using anything in the corresponding language if no region is given ?
Thanks for any insights,
Stefan