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/10 12:41:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17174292#comment-17174292 ]
Peter Lee commented on COMPRESS-543:
------------------------------------
Hi [~wulf2333].
I just pushed a fix for this with commit 0b9dbbcee3d4dd35e92ccad1c55d5f429c072ae4. I tested on Windows with GBK and it works well.
> 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)