tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: DO NOT REPLY [Bug 51580] Severe error deploying WAR application (ExpandWar error)
Date Thu, 25 Aug 2011 14:08:51 GMT
2011/8/25  <bugzilla@apache.org>:
> 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

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

1. You have a typo in LC_CTYPE command above, s/8851/8859/
2. It might be that it reads the characters correctly, but fails to print them.

If it were reading UTF-8 characters as ISO-8859-1, wouldn't there be
several '?'s, one for each byte?

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message