mostly fixups for ICU

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31742 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-12-16 10:09:43 +00:00
parent c4fdcb6d93
commit 62de5b485f
13 changed files with 16749 additions and 2825 deletions

View file

@ -95,7 +95,7 @@ NSString * const NSISO8601Calendar = @"";
# include <unicode/ucurr.h>
#endif
#if defined(HAVE_ICU)
#if GS_USE_ICU == 1
//
// ICU Component Keywords
//
@ -601,7 +601,7 @@ static NSRecursiveLock *classLock = nil;
[classLock lock];
if (nil == systemLocale)
{
#if defined(HAVE_ICU)
#if GS_USE_ICU == 1
systemLocale = [[NSLocale alloc] initWithLocaleIdentifier: @""];
#endif
}
@ -793,7 +793,7 @@ static NSRecursiveLock *classLock = nil;
- (id) objectForKey: (id) key
{
id result = nil;
#if defined(HAVE_ICU)
#if GS_USE_ICU == 1
if (key == NSLocaleIdentifier)
return _localeId;