Project: Tomcat
Bug 51408 String.getBytes() and new String(byte[]) use default charset - may cause problems in some Locales
Reported: 2011-06-21 15:47:16 | Status: resolved fixed

There seem to be rather a lot of instances where Strings and bytes are cconverted using the default charset. Since the default charset is unknown, its behaviour cannot be relied on.

Files changed in fix:
java/org/apache/catalina/ant/AbstractCatalinaTask.java java/org/apache/catalina/authenticator/DigestAuthenticator.java java/org/apache/catalina/realm/JNDIRealm.java java/org/apache/catalina/realm/RealmBase.java java/org/apache/catalina/servlets/WebdavServlet.java java/org/apache/catalina/util/RequestUtil.java java/org/apache/catalina/valves/AccessLogValve.java java/org/apache/catalina/valves/SSLValve.java java/org/apache/coyote/http11/filters/BufferedInputFilter.java java/org/apache/coyote/http11/filters/ChunkedInputFilter.java java/org/apache/coyote/http11/filters/IdentityInputFilter.java java/org/apache/coyote/http11/filters/VoidInputFilter.java java/org/apache/jasper/Constants.java java/org/apache/jasper/compiler/SmapUtil.java java/org/apache/naming/resources/Constants.java java/org/apache/naming/resources/ProxyDirContext.java java/org/apache/tomcat/util/buf/MessageBytes.java