delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 14368395447D |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1606294822; | |
bh=LaAaZVTZYFl3XonqzO0PMlo18+uTfqE5yXs8WEGtdzs=; | |
h=To:References:In-Reply-To:Subject:Date:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: | |
From; | |
b=G5qqiKxmj2TF4VKhkTux4mQIKshJwRgh0skjJcRG6xwEZRlkrcCRJlql7tZY6epNk | |
y3xZHR1w8+gD6HNaF4mZkIQs+PecaO2I22X3+StWrqi0pNxB81iGRkhrgncwQz59BE | |
m4THyzAe96LDn79/StwiGnR95wh/r4k0Uge9Of74= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org 5C3A93836C07 |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=1e100.net; s=20161025; | |
h=x-gm-message-state:from:to:references:in-reply-to:subject:date | |
:message-id:mime-version:content-transfer-encoding:content-language | |
:thread-index; | |
bh=v6k2PLoOmVVQL8CzYtWciO/CtOhrFuPTMj9F1ipK9t4=; | |
b=GbZtz36wMqyvrsTLB38WrgFPj/s9ThUOCY3TV84uQEBnbQidlVVdPasmNQ4b2M4lzi | |
0iZQbLfxeV/4zTMT8gH31aksDBxHQpci3jzij0zvWOYUOxmh5aK/1R3tA4XRSAIxGdvq | |
P6JI25oSBQL2Bk5Cfyz6PF18vXFzpHBBEyUEJtdwfLIGS/TXNlp/kEuxNPR7HoL9x/nh | |
k/AtxuDXLk36Tkj6HfI4+NPjsbJc6SGM8gDmVD82yL6NjEup1m7qGpDvHCy7+PTWmYX1 | |
xA92wKaV9LZXF0ECa4XJ3oiqepDebe46cFn+cl//ArqhJXKVJN7TfL1cC8p+zVqqaftC | |
kL5g== | |
X-Gm-Message-State: | AOAM533IlGydKt6H0QNPaxUbPrzvfsQoZt9aarQyNESvqnGzUyV4maZ8 |
o4MD66AWWACLtLihS41u7wpL104kNCQ= | |
X-Google-Smtp-Source: | ABdhPJxZJF7/sKoCWmoQmgIMjUlo/k2W8nXisQtr4bPRyo/o/xtAuG7Cu6qyiT1hWMkfRnpDCm1trA== |
X-Received: | by 2002:a05:651c:1213:: with SMTP id |
i19mr900204lja.407.1606294816828; | |
Wed, 25 Nov 2020 01:00:16 -0800 (PST) | |
To: | <cygwin AT cygwin DOT com> |
References: | <c2d6280c-26e3-f9e7-89bd-693385a768b2 AT gmail DOT com> |
<D3704C33-A283-40F0-990D-CB9806F0B09D AT gmail DOT com> | |
<000a01d6be5b$3808cad0$a81a6070$@gmail.com> | |
<87a2c99c-045c-e815-4c03-bab7a89a025b AT cs DOT umass DOT edu> | |
<000201d6bf17$7cc4beb0$764e3c10$@gmail.com> | |
<9e881c01-e883-ecd5-883a-e1ac55c740c7 AT gmail DOT com> | |
<000601d6c173$aa55d540$ff017fc0$@gmail.com> | |
<d8a72610-a79b-0387-e52b-25f0b50c46ef AT gmail DOT com> | |
<000a01d6c244$b64bbd70$22e33850$@gmail.com> | |
<237eacd5-a1bf-da6a-2ee6-f2df945f125b AT cs DOT umass DOT edu> | |
<000501d6c26e$73e1d760$5ba58620$@gmail.com> | |
<b0818c10-8e25-5dbc-7e12-a73e23f345fd AT SystematicSw DOT ab DOT ca> | |
In-Reply-To: | <b0818c10-8e25-5dbc-7e12-a73e23f345fd@SystematicSw.ab.ca> |
Subject: | Sv: g++ and c++17 filesystem |
Date: | Wed, 25 Nov 2020 10:00:15 +0100 |
Message-ID: | <002801d6c309$64331680$2c994380$@gmail.com> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Outlook 16.0 |
Thread-Index: | AQIMEcHDzo+EBBrhHHj3sFlr53GwtQIBqNbVAy9h9QUA3PghxQI7mYCPAhTJa9sCXpfa/AHDfHWzAafgnf4Bf6X0yAF3M7+8AV3j7M2oyf8KoA== |
X-Spam-Status: | No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, | |
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Kristian Ivarsson via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | sten DOT kristian DOT ivarsson AT gmail DOT com |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
> >>> all the std::filesystem implementations I've seen for Windows > >> > >> The implementation on top of Cygwin is not "for Windows", it's "for > >> Cygwin", i.e., "for Posix". And for Cygwin that's the right thing to > do. > >> And that's where we keep talking at cross purposes. > > > Maybe it is the right thing to do, but what is your take of why it > > must be so (all the way) ? > > Nobody is interested in doing the work to submit and modify patches to get > them accepted and change it from the way it is. I totally understand that it might be a big task, but (as I said) I cannot understand the reluctancy of even wanting the feature (as far as I experience;-) One might ask what the use case for Cygwin is ? We don't need to go into this rabbit hole though ;-) See more below > > I also do understand that it have several advantages in the > > implementation of std::filesystem but it also imply an extra layer of > > abstraction to the underlaying platform, but to just remove the > > _CYGWIN_ macro when building it would make std::filesystem to not > > understand /cygdrive at all (and I guess that would confuse other > > users;-) so I guess it would require some more sophisticated > > implementation (or extend the number of exceptions already existing in > > the underlaying Cygwin-Posix-implementation) > If you only use POSIX compliant Cygwin or UNC (//) paths, all your > programs built under Cygwin should run successfully under Windows or Wine. > Otherwise if you built under Cygwin, you can overload your directory and > file path methods so if a path contains : or \\ you call > cygwin_conv_path() with appropriate flags to fix your path before using > it Thanx for the tip, maybe I'll look into that, but I guess we need to have our own distro of Cygwin then (or could this be set for changing the behaviour for own built applications) ? > Or build with Mingw or MSVC++ and use whatever those allow. > > Cygwin is an open source project maintained solely by volunteer > contributors in their spare time, and its focus is on working around > Windows limitations to provide a POSIX standard environment and > experience, supporting more POSIX features as Windows limitations are > removed. I'm aware of that and I'm asking these question because I'm working on an open source project as well (so this is pure voluntarily as well:-), targeting *nix-system, but we have a task to make it working on Windows as well and we were hoping to not have the need to add platform specific code (to "clean up" input paths that are perfectly normal for users using Windows) > Other projects gcc-g++, libstdc++ may have sponsored or employed > contributors. > They all have their respective standards focus and are uninterested in > non-standard-compliant changes and any non-POSIX build changes. > But they build and run just fine under Cygwin. Yeah, I discovered that the _CYGWIN_ defines actually were in the (real) libstdc++-distro, so I totally understand that > Feel free to make the appropriate patches to the components and submit the > patches to the upstream projects. > But be prepared for the upstream projects to reject the patches if they > break some standard or compliant test case or use case. > Note that it has taken Intel and then MS five years to get FSGSBASE > support patches accepted in Linux. Thanx for the more concrete tips and maybe I'll do that some day > If you are unprepared to do the necessary work, you still get a lot more > than what you paid for. ;^> Ha haa, you're probably right, but I can tap myself on the shoulder and feel that I made the world a bit better I'm totally used to have pull-requests and enhancement-issues to open source projects laying around for ages before approved Thanx Brian Best regards, Kristian > -- > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada > > This email may be disturbing to some readers as it contains too much > technical detail. Reader discretion is advised. > [Data in binary units and prefixes, physical quantities in SI.] > -- > 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 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |