JDK-6868106 : Ukrainian currency has wrong format
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 6u10,6u14
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-08-04
  • Updated: 2012-12-20
  • Resolved: 2010-10-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u23 b02Fixed 7Fixed
Related Reports
Relates :  
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:

Comments
EVALUATION Masaki will take care of this CR.
23-11-2009

EVALUATION Locale element CR, transfer to Jakub
04-08-2009