mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* 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:
parent
fb08144b5e
commit
4531875573
2 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue