Missing Locales in Java?

java

Solution

there is no one-to-one mapping between countries in the world and the locales. Locales specify regions. They are meant to mark things like language diversity. Just a clarifying example : India, Sri Lanka, Pakistan , Bangladesh are all different countries..but the way they use the english language is not different in any significant way..its a demographic thing..so all these countries could depends on the indian locale

Problem

I've found a number of missing countries in java locales- If I print out a list of available locales, ``` TreeSet< String > m = new TreeSet< String >(); for ( Locale l : Locale.getAvailableLocales() ) { m.add( l.getDisplayCountry() ); } for ( String s : m ) { System.out.println( s ); } ``` I'm missing a number of countries, including Nigeria, Iran, Kyrgyzstan, and Pakistan. Can anyone shed any light on this, or is there a better(more comprehensive) way of getting a country list in java? 1.6.0_16-b01

Original source

Related problems