harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r554966 - in /harmony/enhanced/classlib/trunk/modules/luni/src: main/java/org/apache/harmony/luni/internal/locale/Language_no.java test/api/common/tests/api/java/util/LocaleTest.java
Date Tue, 10 Jul 2007 14:46:57 GMT
Author: tonywu
Date: Tue Jul 10 07:46:56 2007
New Revision: 554966

URL: http://svn.apache.org/viewvc?view=rev&rev=554966
Log:
Fix Harmony-4402 ([classlib][luni] Locale("no", "NO").getDisplayLanguage() returns upper-case
value instead of lower-case if localized for Norwegian locale)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Language_no.java
    harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/LocaleTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Language_no.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Language_no.java?view=diff&rev=554966&r1=554965&r2=554966
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Language_no.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Language_no.java
Tue Jul 10 07:46:56 2007
@@ -57,7 +57,7 @@
 		{"mk","Makedonsk",},
 		{"my","Burmesisk",},
 		{"nl","Nederlandsk",},
-		{"no","Norsk",},
+		{"no","norsk",},
 		{"pl","Polsk",},
 		{"pt","Portugisisk",},
 		{"ro","Rumensk",},

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/LocaleTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/LocaleTest.java?view=diff&rev=554966&r1=554965&r2=554966
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/LocaleTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/tests/api/java/util/LocaleTest.java
Tue Jul 10 07:46:56 2007
@@ -169,6 +169,16 @@
 		// Regression for Harmony-1146
         Locale l_languageAE = new Locale("ae", ""); //$NON-NLS-1$ //$NON-NLS-2$
         assertEquals("Avestan", l_languageAE.getDisplayLanguage()); //$NON-NLS-1$
+        
+        // Regression for HARMONY-4402
+        Locale defaultLocale = Locale.getDefault();
+        try {
+            Locale locale = new Locale("no", "NO");
+            Locale.setDefault(locale);
+            assertEquals("norsk", locale.getDisplayLanguage()); //$NON-NLS-1$
+        } finally {
+            Locale.setDefault(defaultLocale);
+        }
 	}
 
 	/**



Mime
View raw message