Skip to content

Commit

Permalink
Fix NSLocale -countryCode incorrectly returning language code
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Feb 1, 2024
1 parent c9999c8 commit f7eff46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Source/NSLocale.m
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ - (NSString *) languageCode

- (NSString *) countryCode
{
return [self objectForKey: NSLocaleLanguageCode];
return [self objectForKey: NSLocaleCountryCode];
}

- (NSString *) scriptCode
Expand Down

0 comments on commit f7eff46

Please sign in to comment.