Keka icon indicating copy to clipboard operation
Keka copied to clipboard

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

Open love4taylor opened this issue 2 years ago • 3 comments

Configuration

  • Keka version: 1.2.54 (4983)
  • macOS version: 12.4 (21F79)

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

love4taylor avatar Jun 11 '22 00:06 love4taylor

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

Test.zip

aonez avatar Jun 13 '22 09:06 aonez

I can't also repro it:

image

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

pan93412 avatar Jun 29 '22 01:06 pan93412

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

aonez avatar Sep 12 '22 15:09 aonez