JDK-6957384 : getDisplayName returns wrong German translation in very many cases
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2010-06-01
  • Updated: 2012-09-06
  • Resolved: 2011-06-17
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Linux 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux


A DESCRIPTION OF THE PROBLEM :
I wrote a unit test for

Locale l = new Locale("",[iso 3166 Country code here]);
l.getDisplayName(Locale.GERMANY)

which fails in many cases if compared to the list of German wikipedia via a resource file.
It seems not all translations of country names are correct. By comparision with the german list of the "Permanent Commission for Contry Names" (see http://stagn.de) it seems the list in Wikipedia is correct.
See http://141.74.33.52/stagn/Portals/0/080923_STAATENNAMEN_10_komplett.pdf for a German Country list.


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION Closing this bug as a duplicate.
17-06-2011