Fix NSLocale -countryCode incorrectly returning language code

This commit is contained in:
Frederik Seiffert 2024-02-01 10:27:14 +01:00
parent c9999c8dcb
commit f7eff46e86
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2024-02-01 Frederik Seiffert <frederik@algoriddim.com>
* Source/NSLocale.m: Fix -countryCode incorrectly returning language
code.
2024-01-30 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFileHandle.m:

View file

@ -825,7 +825,7 @@ static NSRecursiveLock *classLock = nil;
- (NSString *) countryCode
{
return [self objectForKey: NSLocaleLanguageCode];
return [self objectForKey: NSLocaleCountryCode];
}
- (NSString *) scriptCode