From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37489 invoked by alias); 26 Oct 2017 16:14:26 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 37373 invoked by uid 89); 26 Oct 2017 16:14:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:ESMTPA X-HELO: out4-smtp.messagingengine.com Received: from out4-smtp.messagingengine.com (HELO out4-smtp.messagingengine.com) (66.111.4.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Oct 2017 16:14:19 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2DF9C20D11 for ; Thu, 26 Oct 2017 12:14:18 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Thu, 26 Oct 2017 12:14:18 -0400 X-ME-Sender: Received: from [192.168.1.102] (host86-179-113-201.range86-179.btcentralplus.com [86.179.113.201]) by mail.messagingengine.com (Postfix) with ESMTPA id CDF0F7FA8C for ; Thu, 26 Oct 2017 12:14:17 -0400 (EDT) Subject: Re: setup and colons in filenames To: cygwin-apps@cygwin.com References: <20171025201650.GJ22429@calimero.vinschen.de> <4317ea35-5b64-1485-c970-210eac051a0f@dronecode.org.uk> <20171025210035.GA7980@calimero.vinschen.de> From: Jon Turney Message-ID: <5786d914-eb72-5b96-cf37-8a0870080dc6@dronecode.org.uk> Date: Thu, 26 Oct 2017 16:14:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171025210035.GA7980@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-10/txt/msg00134.txt.bz2 On 25/10/2017 22:00, Corinna Vinschen wrote: > On Oct 25 21:36, Jon Turney wrote: >> On 25/10/2017 21:16, Corinna Vinschen wrote: >>> On Oct 25 20:23, Jon Turney wrote: >>>> On 25/10/2017 16:50, Ken Brown wrote: >>>>> This is a followup to the thread started here: >>>> >>>> The other concern I had was if the filenames for the package archives stored >>>> in the download cache end up containing a ':', which I thought wasn't >>>> allowed in windows filenames? >>> >>> Colons in Cygwin filenames will have 0xf03a value in WIN32. The code to >>> transpose special chars into the private use area at 0xf0XY is in setup, >>> but I'm not sure if setup is really working correctly with archives >>> containing a colon. >> I think the package archives are stored using native Windows filenames, not >> cygwin filenames (i.e. file:// paths rather than cygfile:// paths), because >> the "Local Package Directory" is not necessarily under the cygwin root, so >> I'm not sure that transformation applies. > > The transposition is handled in mklongpath, which is called in nt_fopen, > or called manually in other callers of nt_wfopen to construct the long > path. In theory, this should cover all bases... Yes, you are quite correct, and this transformation is happening, so there is no problem here. (I think what I did to confuse myself was look at the "Local Package Directory" in Cygwin shell without even thinking about it, and saw the filenames being shown with a ':', while thinking they were Windows filenames...)