harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lian...@apache.org
Subject svn commit: r501775 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java
Date Wed, 31 Jan 2007 09:09:03 GMT
Author: liangyx
Date: Wed Jan 31 01:09:01 2007
New Revision: 501775

URL: http://svn.apache.org/viewvc?view=rev&rev=501775
Log:
Apply patch for HARMONY-3084([classlib][luni]Acquire Util.toASCIIUpperCase in java.util.Locale)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java?view=diff&rev=501775&r1=501774&r2=501775
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Locale.java Wed Jan
31 01:09:01 2007
@@ -31,6 +31,7 @@
 import org.apache.harmony.luni.internal.locale.Country;
 import org.apache.harmony.luni.internal.locale.Language;
 import org.apache.harmony.luni.util.PriviAction;
+import org.apache.harmony.luni.util.Util;
 
 /**
  * Locale represents a language/country/variant combination. It is an identifier
@@ -228,7 +229,8 @@
             languageCode = "ji"; //$NON-NLS-1$
         }
 
-        countryCode = country.toUpperCase();
+        // countryCode is defined in ASCII character set
+        countryCode = Util.toASCIIUpperCase(country);
 
         variantCode = variant;
     }



Mime
View raw message