-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't extract chinese filename when diff os #159
Comments
Could you please upload the file |
fix: Decode Zip-Info UTF8 name and comment fields (#159)
Only empty file |
For For both 7zip files, this will be fixed in v2.1.3. |
Describe the bug
When adding a Chinese filename to an archive on Windows, the true filename cannot be extracted on Linux.
To Reproduce
Steps to reproduce the behavior:
你好.txt
(space file).hello.zip
move file to linux.extract
examplecargo run --release --example extract -- hello.zip
.File 0 extracted to "ºAªn.txt" (0 bytes)
.Expected behavior
Extract will be
你好.txt
Screenshots
![image](https://private-user-images.githubusercontent.com/67814228/335798241-44131098-783e-427d-8338-cacded25d501.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NTI3NTAsIm5iZiI6MTcyNTY1MjQ1MCwicGF0aCI6Ii82NzgxNDIyOC8zMzU3OTgyNDEtNDQxMzEwOTgtNzgzZS00MjdkLTgzMzgtY2FjZGVkMjVkNTAxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDE5NTQxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjZGU0YjViMTc5Y2EyNjQ3OThhNDM5Y2QyYzg4MmM2ODNhNDFlZjI1NGI2MWRhMWEzZWJmNGViMzY0ZmY3MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pyxpTrciOvXOBQ_1wKxvIDhyxuOmODp1CQO32L5TuP4)
Desktop
Server
The text was updated successfully, but these errors were encountered: