-
Bug
-
Resolution: Fixed
-
P4
-
8u45
-
b148
-
x86_64
-
windows_7
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
Decimal number formatting is wrong for Serbian locale with Latin script (sr-Latin-RS). For example, number 12345.67 is formatted as 12,345.67 but it should be 12.345,67. Therefore, decimal symbol should be "," and digit grouping symbol should be ".".
Just to note, Serbian locale with Cyrillic script (sr-RS) is formatting numbers correctly.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Locale.setDefault(Locale.forLanguageTag("sr-Latn-RS"));
System.out.println(NumberFormat.getNumberInstance().format(12345.67));
---------- END SOURCE ----------
A DESCRIPTION OF THE PROBLEM :
Decimal number formatting is wrong for Serbian locale with Latin script (sr-Latin-RS). For example, number 12345.67 is formatted as 12,345.67 but it should be 12.345,67. Therefore, decimal symbol should be "," and digit grouping symbol should be ".".
Just to note, Serbian locale with Cyrillic script (sr-RS) is formatting numbers correctly.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Locale.setDefault(Locale.forLanguageTag("sr-Latn-RS"));
System.out.println(NumberFormat.getNumberInstance().format(12345.67));
---------- END SOURCE ----------