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:
parent
8fc1df0227
commit
98de18758d
|
@ -19,6 +19,7 @@ package org.apache.commons.lang;
|
|||
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 @@ public class StringEscapeUtils {
|
|||
* @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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue