aonez / Keka

The macOS & iOS file archiver
https://www.keka.io
4.74k stars 237 forks source link

[BUG] Cannot compress zstd in a directory containing a CJK path #1116

Open love4taylor opened 2 years ago

love4taylor commented 2 years ago

Configuration

Describe the bug

Cannot compress zstd in a directory containing a CJK path. However, whether the compressed folder is CJK or not seems to have no effect.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a directory containing a CJK path, like /Volumes/MICRON B17A/媒体库/套图/六味帝皇酱/
  2. Compress a folder into zstd
  3. Report an error, as shown in the attached log
  4. Move the compressed folder to the root directory of the removable drive, i.e. the directory that does not contain CJK characters, like /Volumes/MICRON B17A/
  5. Now it compresses correctly without errors

Expected behavior

It compresses correctly into zstd in any directory without errors

Screenshots

CleanShot 2022-06-11 at 08 14 10@2x

Additional context

OS: 版本12.4(版号21F79) (arm64)
Keka: v1.2.54-r4983 (MAS) (Sandboxed) (zh-Hans)
Binary used: kekatar
Arguments: (
    "--use-compress-program",
    "\"/Applications/Keka.app/Contents/MacOS/kekazstd\" -4 -T8",
    "-Kcf",
    "/Volumes/MICRON B17A/\U5a92\U4f53\U5e93/\U5957\U56fe/\U516d\U5473\U5e1d\U7687\U9171/\U5f52\U6863.tar.zst",
    "--no-mac-metadata",
    "--no-xattrs",
    "--exclude=.DS_Store",
    "--exclude=.localized",
    "--exclude=._*",
    "--exclude=.FBC*",
    "--exclude=.Spotlight-V100",
    "--exclude=.Trash",
    "--exclude=.Trashes",
    "--exclude=.background",
    "--exclude=.TemporaryItems",
    "--exclude=.fseventsd",
    "--exclude=.com.apple.timemachine.*",
    "--exclude=.VolumeIcon.icns",
    "-C",
    "/Volumes/MICRON B17A/\U5a92\U4f53\U5e93/\U5957\U56fe/\U516d\U5473\U5e1d\U7687\U9171/",
    "\U516d\U5473\U5e1d\U7687\U9171 NO.007 \U5348\U540e\U7684\U5c11\U5973 [84P-553MB]",
    "-C",
    "/Volumes/MICRON B17A/\U5a92\U4f53\U5e93/\U5957\U56fe/\U516d\U5473\U5e1d\U7687\U9171/",
    "\U516d\U5473\U5e1d\U7687\U9171 NO.008 \U6d1b\U4e3d\U5854 [71P-689MB]"
)
kekatar: Failed to open '/Volumes/MICRON B17A/媒体库/套图/六味帝皇酱/归档.tar.zst'

Error code 1
aonez commented 2 years ago

Can't reproduce the issue right away. In what format is the MICRON B17A disk? Does it fail with 7Z or DMG?

Test.zip

pan93412 commented 2 years ago

I can't also repro it:

image

Probably it is related to the encoding in the zstd file?

aonez commented 2 years ago

I need more information to check this, specially the disk format.