* Source/NSNumberFormatter.m (-init): Only check the formatter in

the ICU case.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-02-20 14:58:23 +00:00
parent fb08144b5e
commit 4531875573
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-02-20 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSNumberFormatter.m (-init): Only check the formatter in
the ICU case.
2011-02-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFFIInvocation.m:

View file

@ -460,11 +460,13 @@ static NSUInteger _defaultBehavior = 0;
internal->_locale = RETAIN([NSLocale currentLocale]);
internal->_style = NSNumberFormatterNoStyle;
[self _resetUNumberFormat];
#if GS_USE_ICU == 1
if (internal->_formatter == NULL)
{
RELEASE(self);
return nil;
}
#endif
return self;
}