Fixing the locale to English as hex chars are all ascii

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2008-05-11 06:26:14 +00:00
parent 8fc1df0227
commit 98de18758d
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
import java.io.IOException; import java.io.IOException;
import java.io.StringWriter; import java.io.StringWriter;
import java.io.Writer; import java.io.Writer;
import java.util.Locale;
import org.apache.commons.lang.exception.NestableRuntimeException; import org.apache.commons.lang.exception.NestableRuntimeException;
@ -263,7 +264,7 @@ private static void escapeJavaStyleString(Writer out, String str, boolean escape
* @return An upper case hexadecimal <code>String</code> * @return An upper case hexadecimal <code>String</code>
*/ */
private static String hex(char ch) { private static String hex(char ch) {
return Integer.toHexString(ch).toUpperCase(); return Integer.toHexString(ch).toUpperCase(Locale.ENGLISH);
} }
/** /**