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

DecimalFormat is not working for fo_FO locale

    XMLWordPrintable

Details

    Description

      A DESCRIPTION OF THE PROBLEM :
      The DecimalFormat is used to get the decimal separator for fo_FO locale. The wrong separator is turned.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      DecimalFormat formatter = (DecimalFormat) DecimalFormat.getInstance(locale);
      char decimalSeparator = formatter.getDecimalFormatSymbols().getDecimalSeparator();


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      expecting decimalSeparator to be ','
      ACTUAL -
      '.' is returned

      ---------- BEGIN SOURCE ----------
      DecimalFormat formatter = (DecimalFormat) DecimalFormat.getInstance(locale);
      char decimalSeparator = formatter.getDecimalFormatSymbols().getDecimalSeparator();
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Activity

          People

            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: