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:
Richard Frith-MacDonald 2011-02-23 16:03:52 +00:00
parent 9550a5415b
commit ae10d86ca4

View file

@ -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];