tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23490] New: - [PATCH] ant task I18N for manager webapp
Date Mon, 29 Sep 2003 16:57:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23490>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23490

[PATCH] ant task I18N for manager webapp

           Summary: [PATCH] ant task I18N for manager webapp
           Product: Tomcat 5
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: toraneko@kun.ne.jp


Hi, 

Current ant task don't work for other than English. Here is a patch. Could you
commit it?

regargs,

Takashi Okamoto


Index: AbstractCatalinaTask.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-catalina/catalina/src/share/org/apache/
catalina/ant/AbstractCatalinaTask.java,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 AbstractCatalinaTask.java
--- AbstractCatalinaTask.java   18 Jul 2002 16:48:13 -0000      1.1.1.1
+++ AbstractCatalinaTask.java   29 Sep 2003 16:46:36 -0000
@@ -89,7 +89,10 @@
 
 
     // ----------------------------------------------------- Instance Variables
-
+   /**
+    * manager webapp's encoding.
+    */ 
+    private static String CHARSET = "utf-8";
 
     // ------------------------------------------------------------- Properties
 
@@ -245,7 +248,7 @@
             }
 
             // Process the response message
-            reader = new InputStreamReader(hconn.getInputStream());
+            reader = new InputStreamReader(hconn.getInputStream(), CHARSET);
             StringBuffer buff = new StringBuffer();
             String error = null;
             boolean first = true;

Mime
View raw message