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

NumberFormat returns XX% wrongly instead of %XX for Turkish Locale

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_07"
      Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
      Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows Vista Home Premium

      A DESCRIPTION OF THE PROBLEM :
      In Turkish, percentage sign (%) is written before the number, not after as in English.

      In Turkish, percantage is written as 'yüzde 12' , not '12 yüzde', so the sign must be before the number.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
          Locale locale=new Locale("tr","TR");
          double number=0.123456;
          NumberFormat formatter=NumberFormat.getPercentInstance(locale);
          String text=formatter.format(number);
          System.out.println("Formatted : "+text);

      ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              katakai Masaki Katakai
              Reporter:
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: