JDK-7189611 : Venezuela current Currency should be Bs.F.
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2012-08-07
  • Updated: 2013-08-05
  • Resolved: 2012-08-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b52Fixed
Related Reports
Relates :  
Relates :  
Description
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.

Comments
EVALUATION Verified that the fix has been delivered into b52: http://hg.openjdk.java.net/jdk8/jdk8/jdk/log
22-08-2012

EVALUATION Daven (###@###.###) will fix it. I will update the status according to his fix progress. According to CLDR 21, the symbol of VEF should be BS.F.
08-08-2012