[
https://issues.apache.org/jira/browse/COMPRESS-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
wulf2333 updated COMPRESS-543:
------------------------------
Description:
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()
was:
ERROR:
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()
> 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)