-
Bug
-
Resolution: Duplicate
-
P4
-
6
-
x86
-
windows_vista
FULL PRODUCT VERSION :
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows Vista Home Premium
A DESCRIPTION OF THE PROBLEM :
In Turkish, percentage sign (%) is written before the number, not after as in English.
In Turkish, percantage is written as 'yüzde 12' , not '12 yüzde', so the sign must be before the number.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Locale locale=new Locale("tr","TR");
double number=0.123456;
NumberFormat formatter=NumberFormat.getPercentInstance(locale);
String text=formatter.format(number);
System.out.println("Formatted : "+text);
---------- END SOURCE ----------
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows Vista Home Premium
A DESCRIPTION OF THE PROBLEM :
In Turkish, percentage sign (%) is written before the number, not after as in English.
In Turkish, percantage is written as 'yüzde 12' , not '12 yüzde', so the sign must be before the number.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Locale locale=new Locale("tr","TR");
double number=0.123456;
NumberFormat formatter=NumberFormat.getPercentInstance(locale);
String text=formatter.format(number);
System.out.println("Formatted : "+text);
---------- END SOURCE ----------
- duplicates
-
JDK-4494727 [Fmt-Nu] Formatting of percents incorrect for some locales
- Resolved