United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6868106 Ukrainian currency has wrong format
6868106 : Ukrainian currency has wrong format

Details
Type:
Bug
Submit Date:
2009-08-04
Status:
Closed
Updated Date:
2012-12-20
Project Name:
JDK
Resolved Date:
2010-10-15
Component:
globalization
OS:
windows_xp
Sub-Component:
locale-data
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u10,6u14
Fixed Versions:
6u23

Related Reports
Backport:
Relates:

Sub Tasks

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.
                                     
2009-11-23
EVALUATION

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



Hardware and Software, Engineered to Work Together