From 52d56fe6a33637e49dc1b4658f516ce7ab22f8fe Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 29 Oct 2025 11:47:59 +0100 Subject: [PATCH 26/48] revert change, test seems to fail for a different reason --- src/osx/core/uilocale.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osx/core/uilocale.mm b/src/osx/core/uilocale.mm index 0d1700c06f..68607197ed 100644 --- a/src/osx/core/uilocale.mm +++ b/src/osx/core/uilocale.mm @@ -156,10 +156,13 @@ explicit wxUILocaleImplCF(NSLocale* nsloc) if ( !isAvailable ) return nullptr; - auto nsloc = [NSLocale localeWithLocaleIdentifier: availableLocaleId]; + wxCFStringRef cfName(locId.GetName()); + auto nsloc = [NSLocale localeWithLocaleIdentifier: cfName.AsNSString()]; if ( !nsloc ) return nullptr; + + return new wxUILocaleImplCF(nsloc); } -- 2.24.3 (Apple Git-128)