220 29346 <e48c78ed-3044-ddda-1efe-f7ee0122dad5@honermann.net> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tom Honermann <tom@honermann.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::byte thoughts
Date: Wed, 2 Nov 2016 10:18:47 -0400
Lines: 101
Approved: news@gmane.org
Message-ID: <e48c78ed-3044-ddda-1efe-f7ee0122dad5@honermann.net>
References: <7da80620-e4bd-40eb-a4ec-4f3c2dcb2c98@isocpp.org>
 <2128372.NTAZafObDQ@tjmaciei-mobl1>
 <2145466f-4680-4489-8728-258fd4374aff@isocpp.org>
 <3804442.N9iLZUPZCD@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------8146AE986B0E1291A31F2AB4"
X-Trace: blaine.gmane.org 1478096345 25698 195.159.176.226 (2 Nov 2016 14:19:05 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 2 Nov 2016 14:19:05 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDBNXSHG6UDBBSHL47AAKGQEM4UBULY@isocpp.org Wed Nov 02 15:19:00 2016
Return-path: <std-proposals+bncBDBNXSHG6UDBBSHL47AAKGQEM4UBULY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f197.google.com ([209.85.161.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDBNXSHG6UDBBSHL47AAKGQEM4UBULY@isocpp.org>)
	id 1c1wNK-0004Bv-Gb
	for gclcip-std-proposals@m.gmane.org; Wed, 02 Nov 2016 15:18:46 +0100
Original-Received: by mail-yw0-f197.google.com with SMTP id s68sf24483632ywg.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 02 Nov 2016 07:18:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=MMiYntnxpATwSuh0TPBqVCSn4krlbLaX4ZoJ1N5tRgw=;
        b=kZaJL/OEb1RXo0I4W8dxmfkQ5zOZA78KrPBYvLx5QlRB8dntO8czeAD0qnU1TrBZRW
         HheJF2WJq6A44JHNueDu57Rmr/FzW/Imz+OFfEhGmmdpKkfpQI1bqZffHMW3xJzy9ijh
         5Fh06yQ8W9mO4pesb4Wps6cM+SCnwzqWg5vjJ9g6CaxJgbaoHR+B3orcgx2hNkVv3tUn
         wYnJVvwuCTTEriZzIcAbP0zVMoGBwzwHQWN6uUAeArFT/BVZPzD9Uppd65efjcph2UIt
         Arr25d6oru2IuFP5h97fyFTJEyO6c9fOabpoCIafk5mpRf/tEQ9/cDk7oJy7xyehQOGx
         pyfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=MMiYntnxpATwSuh0TPBqVCSn4krlbLaX4ZoJ1N5tRgw=;
        b=dGXS3lfFUJvs0IqyKwoDgVPDiVl7D8M2KdM7zmIDINbcFXUAD/LA42j/8XY30C/jIz
         crnLmuPbPc052cF8EJWwxoZ1eRm2U9F6d2DIwKUABeNMbzoAY+0ijF+Igk8M3tllob4r
         SsSzk+gdJE+bmakzM8AiT6I6X4bw6tMpO+P6dLQBlx+87U1nihC/hoFc/8l5bDjGkJ8j
         rZj7AQ86yiRttk9YW08Pmjl+Lr5QmvBEWki67TIOQmxOf6x/ZhkhNdLghhigLxZclr2i
         44hl4vWNapeG4nOGVn7j/rNE2sbdzVBDDRbOoc/H3YWD67D9v3eyVQKqJMEGLW7jXb/I
         HhXQ==
X-Gm-Message-State: ABUngvdqIeC+VTImEEO03SJQ+Mf0YCTiE6BOFyRQk3fYBhqw6/R/YCB5dVKyzYOaCmmZuA==
X-Received: by 10.129.58.12 with SMTP id h12mr922895ywa.160.1478096328885;
        Wed, 02 Nov 2016 07:18:48 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.41.69 with SMTP id d63ls5281865otb.48.gmail; Wed, 02 Nov
 2016 07:18:48 -0700 (PDT)
X-Received: by 10.55.6.12 with SMTP id 12mr3281172qkg.182.1478096327962;
        Wed, 02 Nov 2016 07:18:47 -0700 (PDT)
Original-Received: from smtp83.iad3a.emailsrvr.com (smtp83.iad3a.emailsrvr.com. [173.203.187.83])
        by mx.google.com with ESMTPS id j44si1328624qtf.139.2016.11.02.07.18.47
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 02 Nov 2016 07:18:47 -0700 (PDT)
Received-SPF: neutral (google.com: 173.203.187.83 is neither permitted nor denied by best guess record for domain of tom@honermann.net) client-ip=173.203.187.83;
Original-Received: from smtp3.relay.iad3a.emailsrvr.com (localhost [127.0.0.1])
	by smtp3.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 6C1B6250CC
	for <std-proposals@isocpp.org>; Wed,  2 Nov 2016 10:18:47 -0400 (EDT)
X-Auth-ID: tom@honermann.net
Original-Received: by smtp3.relay.iad3a.emailsrvr.com (Authenticated sender: tom-AT-honermann.net) with ESMTPSA id 5476D250CB
	for <std-proposals@isocpp.org>; Wed,  2 Nov 2016 10:18:47 -0400 (EDT)
X-Sender-Id: tom@honermann.net
Original-Received: from [192.168.1.16] (pool-71-176-249-9.rcmdva.fios.verizon.net [71.176.249.9])
	(using TLSv1.2 with cipher DHE-RSA-AES128-SHA)
	by 0.0.0.0:587 (trex/5.7.7);
	Wed, 02 Nov 2016 10:18:47 -0400
In-Reply-To: <3804442.N9iLZUPZCD@tjmaciei-mobl1>
X-Original-Sender: tom@honermann.net
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 173.203.187.83 is neither permitted nor denied by best guess
 record for domain of tom@honermann.net) smtp.mailfrom=tom@honermann.net
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <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:29346
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29346>

This is a multi-part message in MIME format.
--------------8146AE986B0E1291A31F2AB4
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 11/02/2016 10:10 AM, Thiago Macieira wrote:
> Em quarta-feira, 2 de novembro de 2016, =C3=A0s 06:55:29 PDT, Nicol Bolas=
 escreveu:
>> You must not do much UTF-8 work. Because `char` can be signed or unsigne=
d,
>> the only reasonable way to manipulate UTF-8 code units is to use `unsign=
ed
>> char`. While a signed `char` is required to be able to store UTF-8 code
>> units, you don't want to invoke implementation-defined behavior when
>> bitshifting signed types. So you have to use `unsigned char`.
>>
>> So it's hardly unreasonable to pass UTF-8 strings around via `unsigned
>> char*`, rather than `char*`.
> I didn't respond to that part of the email, about UTF-8, because I though=
t we
> were getting char8_t (see Tom Honermann's email).
I'd like for that to happen, but P0482R0=20
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0482r0.html>=20
has not yet been presented nor received any discussion.  I hope to=20
present/discuss in Issaquah, time permitting.

Tom.

--=20
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 e=
mail 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/e48c78ed-3044-ddda-1efe-f7ee0122dad5%40honermann=
..net.

--------------8146AE986B0E1291A31F2AB4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">On 11/02/2016 10:10 AM, Thiago Macieira
      wrote:<br>
    </div>
    <blockquote cite=3D"mid:3804442.N9iLZUPZCD@tjmaciei-mobl1" type=3D"cite=
">
      <pre wrap=3D"">Em quarta-feira, 2 de novembro de 2016, =C3=A0s 06:55:=
29 PDT, Nicol Bolas escreveu:
</pre>
      <blockquote type=3D"cite">
        <pre wrap=3D"">You must not do much UTF-8 work. Because `char` can =
be signed or unsigned,
the only reasonable way to manipulate UTF-8 code units is to use `unsigned
char`. While a signed `char` is required to be able to store UTF-8 code
units, you don't want to invoke implementation-defined behavior when
bitshifting signed types. So you have to use `unsigned char`.

So it's hardly unreasonable to pass UTF-8 strings around via `unsigned
char*`, rather than `char*`.
</pre>
      </blockquote>
      <pre wrap=3D"">
I didn't respond to that part of the email, about UTF-8, because I thought =
we=20
were getting char8_t (see Tom Honermann's email).</pre>
    </blockquote>
    I'd like for that to happen, but <a
href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0482r0.htm=
l">P0482R0</a>
    has not yet been presented nor received any discussion.=C2=A0 I hope to
    present/discuss in Issaquah, time permitting.<br>
    <br>
    Tom.<br>
  </body>
</html>

<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/e48c78ed-3044-ddda-1efe-f7ee0122dad5%=
40honermann.net?utm_medium=3Demail&utm_source=3Dfooter">https://groups.goog=
le.com/a/isocpp.org/d/msgid/std-proposals/e48c78ed-3044-ddda-1efe-f7ee0122d=
ad5%40honermann.net</a>.<br />

--------------8146AE986B0E1291A31F2AB4--

.
