220 37915 <af5962d8-0e52-4f55-becb-69f7539d0d14@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Niall Douglas <nialldouglas14@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Path views, which are views of file system paths
Date: Fri, 20 Apr 2018 14:53:03 -0700 (PDT)
Lines: 86
Approved: news@gmane.org
Message-ID: <af5962d8-0e52-4f55-becb-69f7539d0d14@isocpp.org>
References: <62d6570f-d9fe-4cd1-a26c-4879a29d1362@isocpp.org>
 <29b1d493-fffc-4982-b4db-81571b58569c@isocpp.org>
 <957af749-9ae3-494d-8d50-cd415c77916b@isocpp.org>
 <d0b66bfa-9e71-4fe7-a9a6-0758fa1636a7@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_11201_233716445.1524261183906"
X-Trace: blaine.gmane.org 1524261059 12891 195.159.176.226 (20 Apr 2018 21:50:59 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 20 Apr 2018 21:50:59 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDGKFT5YZADRBQGC5HLAKGQEXDKQ2JQ@isocpp.org Fri Apr 20 23:50:55 2018
Return-path: <std-proposals+bncBDGKFT5YZADRBQGC5HLAKGQEXDKQ2JQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f71.google.com ([209.85.213.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDGKFT5YZADRBQGC5HLAKGQEXDKQ2JQ@isocpp.org>)
	id 1f9dvj-0003HG-BW
	for gclcip-std-proposals@m.gmane.org; Fri, 20 Apr 2018 23:50:55 +0200
Original-Received: by mail-vk0-f71.google.com with SMTP id p10sf6396711vki.23
        for <gclcip-std-proposals@m.gmane.org>; Fri, 20 Apr 2018 14:53:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=zHjI5bQegiPmKz/XBmZDtDoDZiz5CphmNNU9vfSFZWc=;
        b=kF5qDURHQFVYr+0c8r4Lhi+pJT2c5Z0M2NqeI3bUwFB3JKil3y9m/CVb/41PvDsY0B
         P0O7qQvcXH/dRYoUzwtW34Pt0uFETw9/U1csUN9Au1MTfVimH+MNmGpoAoKG97h6NiiI
         /j7Qd4bsea0UeR1okoo3U+pevMdUqaHNlOZ+WTziPdxPr9IJRe47tck0BFtO+nBZvz5L
         1/nGr2OcC2HcDZB0QZFEMLdkVjKIJJhTSFy1njyqMh0EoJZc6iKzWtzC4heCVklp9mEW
         VF/07OvNvfuFlmzlnWns8GGYCLiG2xPDbSpN4Zu/M+KEwFa9OKJAHZJbgiRGOT5Daq/M
         znNw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=zHjI5bQegiPmKz/XBmZDtDoDZiz5CphmNNU9vfSFZWc=;
        b=PEKxxRc07Vm0mEbZ+dnhQqiwY+jtwAGE9WtfJI08lS3RF9k0+crBuD/q/DaXIJzpuD
         HL1XapfxyxJ6pFt3QBRUoHT4vtphoFfeXy81/0rd9vgCbSZr0Eifcr+LCgSG00wvhtT8
         aZQ4d6pQi9o2hHMr7eE4lXNijmqiy5xCq9TG4P+hnSyp2jLB2sA7qDoFH8vu/O15OELy
         j7CfBII0YD6H3mWEAd4sh9DqQ8dRska7+a6g2RAbZl7omGQDRpbwwqY8G1A/6T/on2M4
         jAT3v/+KJDNoi1yBPKd6kojvGIRUk37TqWQicIdL4xO98mALcfDz68GzzTHs45LU2o60
         CQsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=zHjI5bQegiPmKz/XBmZDtDoDZiz5CphmNNU9vfSFZWc=;
        b=pG/aqzlUr2VjgubwRxa5/M0SFD73+swUeO/KYCJh3FtiM4588+WtZhynEN5V6qbdya
         uWbV5rvLA5Eq4gKmjRzkM66lmm/bRi7QJ+zhbCHmM4Gps5tQsQISQS2HIjiTdaATw45Z
         RPEhhPdUVII3DSNDFSZy1g9MUouqlVah3TsO+vwg0Br8war0zd3Z9ZZ1MzObS8FJuSSq
         Nk5heYq6Q/wjYUrE6lV5G6gj21W+sc71z0LSdWz4JEzb7F8DwTMaCAMbSvHuLBsQXOYC
         anshWYjL/GYPyV1ra4wvU88E7OOtn1PzFIx8OWftjoF9pVfcKEe1gazWIfacOIHSppKt
         5x7w==
X-Gm-Message-State: ALQs6tBM8m/8ejQH7eqoI1JyFA+RWf3MVnNwXTsNvDMXBolb6XT5QRbT
	t/eq8JVvY2lnpyLvF6LTYpVkHg==
X-Google-Smtp-Source: AIpwx4+pFkkVsPB0I89xUQRIy8GjTxs2WfyNGHMuQLkRt+tisdGZUIotxyNXf9knrb2srDQQaOtxbQ==
X-Received: by 10.31.185.149 with SMTP id j143mr3083525vkf.121.1524261185811;
        Fri, 20 Apr 2018 14:53:05 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.31.164.70 with SMTP id n67ls5202166vke.20.gmail; Fri, 20 Apr
 2018 14:53:04 -0700 (PDT)
X-Received: by 10.31.154.88 with SMTP id c85mr1400522vke.5.1524261184403;
        Fri, 20 Apr 2018 14:53:04 -0700 (PDT)
In-Reply-To: <d0b66bfa-9e71-4fe7-a9a6-0758fa1636a7@isocpp.org>
X-Original-Sender: nialldouglas14@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:37915
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37915>

------=_Part_11201_233716445.1524261183906
Content-Type: multipart/alternative; 
	boundary="----=_Part_11202_701894070.1524261183907"

------=_Part_11202_701894070.1524261183907
Content-Type: text/plain; charset="UTF-8"


>
> That's precisely why I *don't* think it's a good solution. Because you're 
> not treating `char` as "a pure sitting-on-the-fence declaration". You're 
> treating `char` as UTF-8.
>

If and only if the native encoding is not char.
 

> You're *explicitly* doing this, because on Win32, you will generate a 
> native-encoded path by converting from UTF-8 to UTF-16. There is no 
> fence-sitting happening; you've pick a side.
>

I suppose one could match std::filesystem::path, and treat char input as 
ANSI?

Would you prefer that instead?
 

>
> So if you are going to pick a side, best to be explicit about it.
>
> Sure, it looks like I'll need to simplify the paper's argument a bit. 
Thanks for the feedback.

Niall

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/af5962d8-0e52-4f55-becb-69f7539d0d14%40isocpp.org.

------=_Part_11202_701894070.1524261183907
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr"><div>That&#39;s precisely why I <i>don&#39;t</i> think it&#39;s a good =
solution. Because you&#39;re not treating `char` as &quot;a pure sitting-on=
-the-fence declaration&quot;. You&#39;re treating `char` as UTF-8.</div></d=
iv></blockquote><div><br></div><div>If and only if the native encoding is n=
ot char.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"m=
argin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"=
><div dir=3D"ltr"><div> You&#39;re <i>explicitly</i> doing this, because on=
 Win32, you will generate a native-encoded path by converting from UTF-8 to=
 UTF-16. There is no fence-sitting happening; you&#39;ve pick a side.<br></=
div></div></blockquote><div><br></div><div>I suppose one could match std::f=
ilesystem::path, and treat char input as ANSI?</div><div><br></div><div>Wou=
ld you prefer that instead?</div><div>=C2=A0</div><blockquote class=3D"gmai=
l_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;=
padding-left: 1ex;"><div dir=3D"ltr"><div><br>So if you are going to pick a=
 side, best to be explicit about it.<br></div><br></div></blockquote><div>S=
ure, it looks like I&#39;ll need to simplify the paper&#39;s argument a bit=
.. Thanks for the feedback.</div><div><br></div><div>Niall</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/af5962d8-0e52-4f55-becb-69f7539d0d14%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/af5962d8-0e52-4f55-becb-69f7539d0d14=
%40isocpp.org</a>.<br />

------=_Part_11202_701894070.1524261183907--

------=_Part_11201_233716445.1524261183906--

.
