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 428BA3857BAF Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru X-Yandex-Fwd: 2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1655584502; bh=OqxqjApqBquWqFt20bbzIXS1LCeMhsYamgPWULu17LE=; h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To; b=W1A2gneQ3tJUvq+7hLhJ3uRcQYpRWikFJCEnfvU8dKPy+Kk9ZLg24hqIyQVLN2AwO TNSVpqiG0/FFiDsiwmMwFIn7bOPy8gvxXsKmGeQvm6YMIEVqj/F1d8MzUfX03M6tLl Fdr454RjBnKkYz4PoFHtbTVbcDfhHWyE/k3ZfA10= Authentication-Results: iva5-2e4d8caebad4.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Date: Sat, 18 Jun 2022 23:23:21 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <79027388.20220618232321@yandex.ru> To: Eliot Moss , cygwin AT cygwin DOT com Subject: Re: unzip failure with files that contain colons In-Reply-To: <9093a683-0215-3835-42f5-a8f82975c29f@cs.umass.edu> References: <20220615183007 DOT 7xchz44wwbx2gnio AT lucy DOT dinwoodie DOT org> <20220617002939 DOT 65c772fc3504f992b6fcf4d9 AT nifty DOT ne DOT jp> <9093a683-0215-3835-42f5-a8f82975c29f AT cs DOT umass DOT edu> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, 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: , Reply-To: cygwin AT cygwin DOT com 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 25IKZNcu009062 Greetings, Eliot Moss! > On 6/16/2022 11:29 AM, Takashi Yano wrote: >> 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 > Is colon used for ADS under Windows? Could that be why one should > be careful with it? Colon is used (aside from being disk-path separator) as file stream indicator. Replacing it is not strictly correct, in global sense of things, but unpacking archives is not the place where you'd want to see data stored in multiple streams. -- With best regards, Andrey Repin Saturday, June 18, 2022 23:21:27 Sorry for my terrible english... -- 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