From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by sourceware.org (Postfix) with ESMTPS id 017ED38582A8 for ; Thu, 16 Jun 2022 15:30:09 +0000 (GMT) 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 Received: from HP-Z230 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 25GFTdFb015605 for ; Fri, 17 Jun 2022 00:29:39 +0900 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@cygwin.com Subject: Re: unzip failure with files that contain colons Message-Id: <20220617002939.65c772fc3504f992b6fcf4d9@nifty.ne.jp> In-Reply-To: References: <20220615183007.7xchz44wwbx2gnio@lucy.dinwoodie.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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@cygwin.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: , X-List-Received-Date: Thu, 16 Jun 2022 15:30:11 -0000 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