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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b148
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: