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

The currency symbol for Peru is wrong

    XMLWordPrintable

Details

    • b34
    • x86
    • windows_7
    • Verified

    Backports

      Description

        FULL PRODUCT VERSION :
        C:\Users\leandro.ramos>java -version
        java version "1.6.0_24"
        Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
        Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Windows 7, 64 bits.

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Locale: Peru / Format: Spanish Peru

        A DESCRIPTION OF THE PROBLEM :
        The currency symbol for Peru changed from "S/" to "S/." and the JDK still in the old way.
        This problem looks very easy to correct and impact the applications with currency symbol, because the old symbol means that the price should be update to the new currency, for the users.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Setup the locale of Windows to Peru and the format to Spanish Peru.

        Then run the program bellow (on Source code for an executable test case):




        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.util.*;

        public class Call_Currency {
        public static void main(String[] args) {
        Currency pe = Currency.getInstance("PEN");
        System.out.println("Peru Currency: " + pe.getSymbol());
        }
        }
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Awhile we´re including the "." on the html.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: