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

Grouping Separator is different from actual standard for sv

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6u26
    • globalization

      FULL PRODUCT VERSION :
      1.6

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Not Required

      A DESCRIPTION OF THE PROBLEM :
      DecimalFormat myFormatter = (DecimalFormat) NumberFormat.getInstance(new Locale("sv", "SE"));
      char gs=myFormatter.getDecimalFormatSymbols().getGroupingSeparator();
      // gs is actually here as space
      // instead of space it should be '.'

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      DecimalFormat myFormatter = (DecimalFormat) NumberFormat.getInstance(new Locale("sv", "SE"));
      char gs=myFormatter.getDecimalFormatSymbols().getGroupingSeparator();
      //check value of gs at here
      // gs is actually here as space
      // instead of space it should be '.'

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      As per swedish format they are taking '.' as grouping separator.
      ACTUAL -
      if we try to format a double value like 15566.34
      so after formatting it is like 15 566,34
      which is wrong it must be 15.566,34

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No error message

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      no Test cases
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I have to put condition for specific languages

      SUPPORT :
      YES

            ljiang Leo Jiang (Inactive)
            peytoia Yuka Kamiya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: