Add a comment
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 4 Nov 2009 10:16:36 +0000 (10:16 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 4 Nov 2009 10:16:36 +0000 (10:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@832697 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/loader/WebappClassLoader.java

index 03eee24..04dc4a5 100644 (file)
@@ -2182,6 +2182,10 @@ public class WebappClassLoader
                     } catch (IOException e) {}
                 }
                 if (fileNeedConvert) {
+                    // Workaround for certain files on platforms that use
+                    // EBCDIC encoding, when they are read through FileInputStream.
+                    // See commit message of rev.303915 for details
+                    // http://svn.apache.org/viewvc?view=revision&revision=303915
                     String str = new String(binaryContent,0,pos);
                     try {
                         binaryContent = str.getBytes("UTF-8");