JDK-6931564 : Incorrect display name of Locale for south africa
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 6u13
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2010-03-03
  • Updated: 2015-02-02
  • Resolved: 2013-10-30
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
7u80Fixed 8 b115Fixed
Description
FULL PRODUCT VERSION :
1.6.0_13

ADDITIONAL OS VERSION INFORMATION :
Windows Vista, 32 bit

A DESCRIPTION OF THE PROBLEM :
When printing the display name of the Local for South Africa, in swedish,
an additional space has slipped in at the end.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(new java.util.Locale("en", "ZA").getDisplayCountry(new java.util.Locale("sv", "SE")) + ".");

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Output should be:
Sydafrika.
ACTUAL -
Sydafrika .

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
System.out.println(new java.util.Locale("en", "ZA").getDisplayCountry(new java.util.Locale("sv", "SE")) + ".");
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
new java.util.Locale("en", "ZA").getDisplayCountry(new java.util.Locale("sv", "SE")) .trim()

Comments
Verified in 8b116
04-12-2013

Reassign to Michael because this is translation bug.
30-05-2013

EVALUATION locale data CR. Transfer to Maskai. I think fixing in 7 is enough, as the priority is 5.
05-03-2010