mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix NSLocale -countryCode incorrectly returning language code
This commit is contained in:
parent
c9999c8dcb
commit
f7eff46e86
2 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -825,7 +825,7 @@ static NSRecursiveLock *classLock = nil;
|
|||
|
||||
- (NSString *) countryCode
|
||||
{
|
||||
return [self objectForKey: NSLocaleLanguageCode];
|
||||
return [self objectForKey: NSLocaleCountryCode];
|
||||
}
|
||||
|
||||
- (NSString *) scriptCode
|
||||
|
|
Loading…
Reference in a new issue