[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67926: 29.1; fail to extract ZIP subfile named with [...]
From: |
Eli Zaretskii |
Subject: |
bug#67926: 29.1; fail to extract ZIP subfile named with [...] |
Date: |
Thu, 28 Dec 2023 16:06:14 +0200 |
> From: awrhygty@outlook.com
> Cc: 67926@debbugs.gnu.org
> Date: Thu, 28 Dec 2023 22:09:23 +0900
>
> > Btw, your suggested changes required gzip and bunzip2 as external
> > programs to support the 2 most popular compression methods. Why
> > should we assume these are available more widely than unzip,
> > especially on Windows?
>
> When I installed UnxUtils years ago, it had bzip2 and gzip, but not
> unzip nor zip. Now I download it again, it has unzip and zip.
Windows systems don't come with UnxUtils installed anyway.
> My interest is how to avoid naming problems.
> There are more difficulties in Japanese.
> Japanese characters in file names are normally encoded in cp932.
> Encoded characters may have '[', '\' or ']' as a second byte.
> (encode-coding-string "ゼソゾ" 'cp932)
> => "\203[\203\\\203]"
> Subfiles of such names can not be extracted normally.
I don't think we can solve this in Emacs: non-ASCII file names in zip
archives are a mess, even before you consider the fact that zip
archives are frequently moved between systems. For starters, how can
one know in advance what is the encoding of file names in an arbitrary
zip archive? This will bite you even if we do everything in Emacs,
and even if someone does submit patches to implement all the
compression methods.
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], (continued)
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], Eli Zaretskii, 2023/12/23
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], Andreas Schwab, 2023/12/23
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], awrhygty, 2023/12/26
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], Eli Zaretskii, 2023/12/26
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], awrhygty, 2023/12/27
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], Eli Zaretskii, 2023/12/27
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], awrhygty, 2023/12/27
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], Eli Zaretskii, 2023/12/28
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], awrhygty, 2023/12/28
- bug#67926: 29.1; fail to extract ZIP subfile named with [...],
Eli Zaretskii <=
- bug#67926: 29.1; fail to extract ZIP subfile named with [...], Eli Zaretskii, 2023/12/28