Author: mrglavas
Date: Fri Nov 7 21:45:38 2008
New Revision: 712352
URL: http://svn.apache.org/viewvc?rev=712352&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/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/URI.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/URI.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/URI.java?rev=712352&r1=712351&r2=712352&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/URI.java
(original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/URI.java
Fri Nov 7 21:45:38 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]