mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
9550a5415b
commit
ae10d86ca4
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