From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67926: 29.1; fail to extract ZIP subfile named with [...] Date: Thu, 28 Dec 2023 16:06:14 +0200 Message-ID: <83sf3m776x.fsf@gnu.org> References: <83a5q1dy1h.fsf@gnu.org> <831qb8anak.fsf@gnu.org> <83jzoz8ubq.fsf@gnu.org> <838r5e96tq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="665"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67926@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 28 15:07:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rIr2i-000AVv-6W for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Dec 2023 15:07:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIr2Q-0000RG-7h; Thu, 28 Dec 2023 09:07:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIr2O-0000Qq-G3 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 09:07:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIr2N-0000iU-39 for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 09:07:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIr2M-00013X-An for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 09:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2023 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67926 X-GNU-PR-Package: emacs Original-Received: via spool by 67926-submit@debbugs.gnu.org id=B67926.17037723984024 (code B ref 67926); Thu, 28 Dec 2023 14:07:02 +0000 Original-Received: (at 67926) by debbugs.gnu.org; 28 Dec 2023 14:06:38 +0000 Original-Received: from localhost ([127.0.0.1]:38756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIr1y-00012q-1O for submit@debbugs.gnu.org; Thu, 28 Dec 2023 09:06:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIr1v-00012c-QD for 67926@debbugs.gnu.org; Thu, 28 Dec 2023 09:06:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIr1o-0000g8-Al; Thu, 28 Dec 2023 09:06:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Sv8sKPdIGlL0iwFG9JVvs8oTR0h+QR4MX08pksghPgw=; b=qGKHAYCv3//cs52G6MGK YCvjAzUbY/Q4bRtUhEdjLjGyBQevpcNMz2NjqQfm1Ezdih8JLRRMfFeLScaY8uj/37HYXIViNoRDc 00enQdCqA8Sf3ld2Hod2ihxzVEClohlITnilQGk7aFNP9l5EkCUA7nZDt7rktXUsQrnGoH63NWo8P Tdqn1R9kaa0wp5G6KHxPiThYSMNlJXZH5hvruN52/Pf2cxAYWavwz+9s+O598l3jA8ma1ohdjGAEv 4Jrd4d3tB8DLvNDbhhUkn99HzrmqcvXYnzOJJa4qK3WDiRNBi1Npv5jT80tEyUNJum8BNayiCgkbt dSD7lp+wmq/Q8w==; In-Reply-To: (awrhygty@outlook.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276978 Archived-At: > 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.