You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Peter Lee (Jira)" <ji...@apache.org> on 2020/08/11 12:24:00 UTC
[jira] [Resolved] (COMPRESS-543) Some test cases fail to run in
window environment.
[ https://issues.apache.org/jira/browse/COMPRESS-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Lee resolved COMPRESS-543.
--------------------------------
Resolution: Fixed
> Some test cases fail to run in window environment.
> --------------------------------------------------
>
> Key: COMPRESS-543
> URL: https://issues.apache.org/jira/browse/COMPRESS-543
> Project: Commons Compress
> Issue Type: Test
> Components: Archivers
> Affects Versions: 1.20
> Reporter: wulf2333
> Priority: Minor
> Attachments: image-2020-07-13-19-27-30-073.png, image-2020-07-13-19-27-57-340.png
>
>
> ERROR:
> !image-2020-07-13-19-27-57-340.png!
> Problem: Because Windows System uses GBK code by default, and it uses GBK encoding to open the utf8 file( !image-2020-07-13-19-27-30-073.png! ), which will report an error. So, these two examples will fail in Windows environment. While Linux System uses UTF-8 code by default, so there will be no error.
> File: src\test\java\org\apache\commons\compress\archivers\zip\UTF8ZipFilesTest.java
> Function: testReadWinZipArchiveForStream() testReadWinZipArchive()
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)