mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +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
4ed081d410
commit
ccdc185f97
2 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue