Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: 6u10, 6u14
-
Fix Version/s: 6u23
-
Component/s: globalization
-
Subcomponent:
-
Resolved In Build:b02
-
CPU:x86
-
OS:windows_xp
-
Verification:Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2185387 | 7 | Masaki Katakai | P4 | Closed | Fixed | b80 |
Description
FULL PRODUCT VERSION :
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
On all versions of Windows XP, Vista, Linux and probably on others OS.
A DESCRIPTION OF THE PROBLEM :
Ukrainian currency has wrong format.
Locale loc2 = new Locale("uk","UA");
NumberFormat curFormat = NumberFormat.getCurrencyInstance(loc2);
double ¿ = 1234.57;
System.out.println("Sum = " + curFormat.format(c));
prints:
Sum = 1.234,57 ¿¿¿.
but should print:
Sum = 1 234,57 ¿¿¿.
("¿¿¿." must be replaced with "¿¿¿." and dot "." with space " ")
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set regional setting to Ukrainian in your operation system (by the way, Windows settings for Ukrainian locale is right, but Java takes this setting from an other place).
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Locale loc2 = new Locale("uk","UA");
NumberFormat curFormat = NumberFormat.getCurrencyInstance(loc2);
double ¿ = 1234.57;
System.out.println("Sum = " + curFormat.format(c));
---------- END SOURCE ----------
Source code:
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
On all versions of Windows XP, Vista, Linux and probably on others OS.
A DESCRIPTION OF THE PROBLEM :
Ukrainian currency has wrong format.
Locale loc2 = new Locale("uk","UA");
NumberFormat curFormat = NumberFormat.getCurrencyInstance(loc2);
double ¿ = 1234.57;
System.out.println("Sum = " + curFormat.format(c));
prints:
Sum = 1.234,57 ¿¿¿.
but should print:
Sum = 1 234,57 ¿¿¿.
("¿¿¿." must be replaced with "¿¿¿." and dot "." with space " ")
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set regional setting to Ukrainian in your operation system (by the way, Windows settings for Ukrainian locale is right, but Java takes this setting from an other place).
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Locale loc2 = new Locale("uk","UA");
NumberFormat curFormat = NumberFormat.getCurrencyInstance(loc2);
double ¿ = 1234.57;
System.out.println("Sum = " + curFormat.format(c));
---------- END SOURCE ----------
Source code:
Attachments
Issue Links
- backported by
-
JDK-2185387 Ukrainian currency has wrong format
-
- Closed
-
- relates to
-
JDK-6916787 Ukrainian currency name needs to be fixed
-
- Closed
-