mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Locale fix provided by Philippe Roussel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32330 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f4a4b31710
commit
40a8c57b42
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ int main()
|
|||
str = [fmt stringFromNumber: num];
|
||||
PASS_EQUAL(str, @"1235", "default 10.4 format same as Cocoa")
|
||||
|
||||
[fmt setLocale: [[NSLocale alloc] initWithLocaleIdentifier: @"en"]];
|
||||
|
||||
[fmt setMaximumFractionDigits: 2];
|
||||
str = [fmt stringFromNumber: num];
|
||||
|
||||
|
|
Loading…
Reference in a new issue