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 51580] Severe error deploying WAR application (ExpandWar error)
Date Thu, 25 Aug 2011 13:55:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51580

--- Comment #10 from Christopher Schultz <chris@christopherschultz.net> 2011-08-25 13:55:26
UTC ---
(In reply to comment #4)
> Zip uses platform default encoding to encode file names.
> JAR uses UTF-8.

I'm not so sure that's true:

$ echo $LC_CTYPE
en_US.UTF-8

$ jar tvf 51580.war 
     0 Sat Aug 13 21:06:34 EDT 2011 text_extraction_rules/
   594 Sat Aug 13 21:06:34 EDT 2011
text_extraction_rules/Cliente-TextExtractRules-A├žoreana.properties
   570 Sat Aug 13 21:06:34 EDT 2011
text_extraction_rules/Cliente-TextExtractRules-Liberty.properties

$ LC_CTYPE=en_US.ISO-8851-1 jar tvf 51580.war 
     0 Sat Aug 13 21:06:34 EDT 2011 text_extraction_rules/
   594 Sat Aug 13 21:06:34 EDT 2011
text_extraction_rules/Cliente-TextExtractRules-A?oreana.properties
   570 Sat Aug 13 21:06:34 EDT 2011
text_extraction_rules/Cliente-TextExtractRules-Liberty.properties

$ unzip -v 51580.war 
Archive:  51580.war
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2011-08-13 21:06 00000000 
text_extraction_rules/
     594  Stored      594   0% 2011-08-13 21:06 3271f2b8 
text_extraction_rules/Cliente-TextExtractRules-A?oreana.properties
     570  Stored      570   0% 2011-08-13 21:06 a00a7a2c 
text_extraction_rules/Cliente-TextExtractRules-Liberty.properties
--------          -------  ---                            -------
    1164             1164   0%                            3 files


When my file.encoding ends up being ISO-8859-1, jar acts just as stupidly as
zip.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message