Author: mrglavas
Date: Fri Nov  7 21:45:12 2008
New Revision: 712351

URL: http://svn.apache.org/viewvc?rev=712351&view=rev
Log:
When normalizing a String object to upper- or lower case one needs to be very 
careful not to rely on the default locale of the platform. This results from 
the fact that Turkish in particular does not map characters to their upper- or 
lower case equivalents in English. Now, everywhere where this could pose a 
problem, we force case conversion to be done according to an English locale.

Modified:
    xerces/java/trunk/src/org/apache/xerces/util/URI.java

Modified: xerces/java/trunk/src/org/apache/xerces/util/URI.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/util/URI.java?rev=712351&r1=712350&r2=712351&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/util/URI.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/util/URI.java Fri Nov  7 21:45:12 
2008
@@ -19,6 +19,7 @@
 
 import java.io.IOException;
 import java.io.Serializable;
+import java.util.Locale;
 
 /**********************************************************************
 * A class to represent a Uniform Resource Identifier (URI). This class
@@ -1402,7 +1403,7 @@
       throw new MalformedURIException("The scheme is not conformant.");
     }
 
-    m_scheme = p_scheme.toLowerCase();
+    m_scheme = p_scheme.toLowerCase(Locale.ENGLISH);
   }
 
  /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to