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

Venezuela current Currency should be Bs.F.

XMLWordPrintable

    • b52
    • x86
    • linux_ubuntu
    • Verified

        FULL PRODUCT VERSION :
        openjdk version "1.8.0-internal-debug"
        OpenJDK Runtime Environment (build 1.8.0-internal-debug-deven_2012_06_18_17_23-b00)
        OpenJDK Server VM (build 24.0-b13-jvmg, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Linux deven 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:46:35 UTC 2012 i686 i686 i386 GNU/Linux

        A DESCRIPTION OF THE PROBLEM :
        Venezuela currency has been changed to BS.F.

          From either wikipedia or windows config, "Bs.F." rather than "BsF." and "Bs.F" should be used. Hence, I think the patch should be modified.
        -VEF=BsF.
        +VEF=Bs.F.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        import java.util.Locale;
        import java.util.Currency;
        import java.text.NumberFormat;

        public class VECurrencyTest {
            public static void main(String[] args) throws Exception {
                String expectedResult = "Bs.F.100";
                Locale veLocale = new Locale("es", "VE");
                NumberFormat cnf = NumberFormat.getCurrencyInstance(veLocale);

                String result = cnf.format(100);
                System.out.println("The acutal result is " + result);
                if (! expectedResult.equals(result)) {
                    throw new Exception("The correct currency expression should be BS.F.100");
                }
            }
        }


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Bs.F.100
        ACTUAL -
        Bs.F100

        REPRODUCIBILITY :
        This bug can be reproduced always.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: