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

NumberFormat#getCurrencyInstance for Estonian locale has wrong decimal separator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 7
    • globalization
    • None

      FULL PRODUCT VERSION :
      java version " 1.7.0_21 "
      Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      3.8.0-22-generic #33-Ubuntu x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      According to http://www.eki.ee/itstandard/2000/FDCC.shtml.en the estonian decimal separator for monetary formatting is FULL STOP<.> NumberFormat#getCurrency returns a comma.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      @Test
      public void estonianLocale() {
      Locale locale = new Locale( " et " , " EE " );
      NumberFormat nb = NumberFormat.getCurrencyInstance(locale);
      assertEquals( " 2.23 ? " , nb.format(2.23f));
      }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      2.23 ?
      ACTUAL -
      2,23 ?

      REPRODUCIBILITY :
      This bug can be reproduced always.

            yhuang Yong Huang (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: