2011/8/25  <bugzi...@apache.org>:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=51580
>
> --- Comment #10 from Christopher Schultz <ch...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to