Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8081643

Wrong number format for Serbian locale with Latin script (sr-Latn-RS)

XMLWordPrintable

    • 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 ----------

            ljiang Leo Jiang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: