ouch-org / ouch

Painless compression and decompression in the terminal
https://crates.io/crates/ouch
Other
2.18k stars 75 forks source link

Ouch breaks the file name when the encode is not utf-8 #691

Open linsui opened 1 month ago

linsui commented 1 month ago

Version

ouch 0.5.1

Description

Create a test file

mkdir test
cd test
touch 这是一个测试文件.txt

Change the file name encode

convmv -t CP936 -f UTF-8 --notest 这是一个测试文件.txt

Compress it with zip

cd ..
zip -r test.zip test

If I decompress test.zip with 7zz or unzip, then we can recover the filename with convmv. But if I decompress test.zip with ouch, the file name is different and I can't convert it with convmv.

Current Behavior

No response

Expected Behavior

No response

Additional Information

No response