JDK-7028073 : The currency symbol for Peru is wrong
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 6u24
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86
  • Submitted: 2011-03-16
  • Updated: 2015-07-31
  • Resolved: 2012-08-06
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 6 JDK 7 JDK 8
6u95Fixed 7u60Fixed 8 b34Fixed
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.

Comments
EVALUATION To fix the CR, we need to update jdk/src/share/classes/sun/util/resources/CurrencyNames_es_PE.properties to change the entry of currency simbol. I checked the source code in 6u21, it's also PEN=S/ there. This is not a regression CR. It's a new problem to be fixed.
14-04-2011

EVALUATION As it's close to the code freeze of Java 7, we may not have enough time to fix it in 7. I target the CR to 7-pool to fix it in 7 update and will also add sub CR to port the fix to Java 8.
14-04-2011