commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r655256 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
Date Sun, 11 May 2008 06:26:15 GMT
Author: bayard
Date: Sat May 10 23:26:14 2008
New Revision: 655256

URL: http://svn.apache.org/viewvc?rev=655256&view=rev
Log:
Fixing the locale to English as hex chars are all ascii

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java?rev=655256&r1=655255&r2=655256&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java Sat
May 10 23:26:14 2008
@@ -19,6 +19,7 @@
 import java.io.IOException;
 import java.io.StringWriter;
 import java.io.Writer;
+import java.util.Locale;
 
 import org.apache.commons.lang.exception.NestableRuntimeException;
 
@@ -263,7 +264,7 @@
      * @return An upper case hexadecimal <code>String</code>
      */
     private static String hex(char ch) {
-        return Integer.toHexString(ch).toUpperCase();
+        return Integer.toHexString(ch).toUpperCase(Locale.ENGLISH);
     }
 
     /**



Mime
View raw message