Float formater error for Local Switzerland

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Linux

      A DESCRIPTION OF THE PROBLEM :
      The swiss decimal point is dot. With java 8, its'OK but when I migrate to java 24 i found that is become comma.

      REGRESSION : Last worked in version 8u471

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the test case

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Locale Suisse - Pi = 3.141593
      ACTUAL -
      Locale Suisse - Pi = 3,141593

      ---------- BEGIN SOURCE ----------
      BigDecimal pi = BigDecimal.valueOf(Math.PI);

        System.out.printf("Locale %s - Pi = %f\n", Locale.getDefault().getDisplayCountry(), pi);
      ---------- END SOURCE ----------

            Assignee:
            Anjana Sajeev
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: