X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 017ED38582A8 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 25GFTdFb015605 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1655393379; bh=70oPz++Zm2QtpnIfkGvVjgCD8PWjuNHLvV234hBBEP0=; h=Date:From:To:Subject:In-Reply-To:References:From; b=lAbqFHF5hLaUqS5s/yUTHaRhVggBOrzfSRcRPOIUpVPC9xBtNEYCBvlTJYjzk8pPc c9jut+mpPA9rRonwrqvHiQSOKQv8T1pF9SaHNm3p8w6neAawPi7VcVM/Dd+CHuoJs/ eIFrZZjH+bVHwP/zv8WB3U/28qkSXpjvhMAM4d9bvErrr6jyhycmyEtWuVj0iV5VUa yYCkTwHiRGkkTBhTwAxlDdsqVcMSA7kZdQZLAqAkrf2Mc9o0bNTX7zMQfMGQYMYHNn bzPYJFjuyEjOLYKFUaPoWpiDyHYqOSU95hegdMrhjj/D+2EDj7lg+GGbWUnD12Xpao 0s+PcJQ17DVTw== X-Nifty-SrcIP: [119.150.44.95] Date: Fri, 17 Jun 2022 00:29:39 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: unzip failure with files that contain colons Message-Id: <20220617002939.65c772fc3504f992b6fcf4d9@nifty.ne.jp> In-Reply-To: References: <20220615183007 DOT 7xchz44wwbx2gnio AT lucy DOT dinwoodie DOT org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 25GFUSL1025250 On Thu, 16 Jun 2022 06:22:38 +0200 Thomas Wolff wrote: > Am 15.06.2022 um 20:30 schrieb Adam Dinwoodie: > > Cygwin generally handles filenames with colons just fine, by mapping the > > character to some higher Unicode character and remapping on the fly. > > However Cygwin's `unzip` appears to have a bug: when unzipping an > > archive that contains a filename with a colon, it replaces the colon > > with an underscore. > > > > cygcheck.out and simple test script attached; expected behaviour from > > running `bash unzip-bug.sh` is that you get an empty file called `a:b`, > > but on Cygwin you instead get an empty file called `a_b`. > It's an explicit #ifdef __CYGWIN__ in upstream unzip, file unix/unix.c, > which transforms a bunch of characters. > If I uncomment most of them (except \), all unpack fine: > x0:z  x1z  x3|z  x4"z  x5?z  x6*z I have taken over the maintenance of unzip package, and fix the problem in the updated unzip-6.0-18. https://cygwin.com/pipermail/cygwin/2022-June/251653.html Please try. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple