mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix bug in NSLocale ISO codes methods.
This commit is contained in:
parent
10b865e2d5
commit
952884dd6a
2 changed files with 7 additions and 3 deletions
|
@ -505,7 +505,7 @@ static NSRecursiveLock *classLock = nil;
|
|||
NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity: 10];
|
||||
const char *const *codes = uloc_getISOCountries ();
|
||||
|
||||
while (codes != NULL)
|
||||
while (*codes != NULL)
|
||||
{
|
||||
[array addObject: [NSString stringWithUTF8String: *codes]];
|
||||
++codes;
|
||||
|
@ -530,9 +530,9 @@ static NSRecursiveLock *classLock = nil;
|
|||
if (nil == languages)
|
||||
{
|
||||
NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity: 10];
|
||||
const char *const *codes = uloc_getISOCountries ();
|
||||
const char *const *codes = uloc_getISOLanguages ();
|
||||
|
||||
while (codes != NULL)
|
||||
while (*codes != NULL)
|
||||
{
|
||||
[array addObject: [NSString stringWithUTF8String: *codes]];
|
||||
++codes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue