Re: Unicode escape sequence | Re: draft-ietf-httpbis-header-structure-00, unicode range

Julian Reschke <julian.reschke@gmx.de> Wed, 14 December 2016 10:25 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93241129CE1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2016 02:25:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.797
X-Spam-Level:
X-Spam-Status: No, score=-9.797 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-2.896, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E90PbfBgu7gP for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2016 02:25:20 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A7BFD129CE0 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Dec 2016 02:25:12 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cH6iW-0007Rm-EI for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Dec 2016 10:23:20 +0000
Resent-Date: Wed, 14 Dec 2016 10:23:20 +0000
Resent-Message-Id: <E1cH6iW-0007Rm-EI@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1cH6iP-0007Qv-E5 for ietf-http-wg@listhub.w3.org; Wed, 14 Dec 2016 10:23:13 +0000
Received: from mout.gmx.net ([212.227.15.15]) by titan.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <julian.reschke@gmx.de>) id 1cH6iH-0000QO-Nl for ietf-http-wg@w3.org; Wed, 14 Dec 2016 10:23:08 +0000
Received: from [192.168.178.20] ([93.217.110.65]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LuP5z-1cj7OJ49G3-011n5m; Wed, 14 Dec 2016 11:21:37 +0100
To: Alexey Melnikov <alexey.melnikov@isode.com>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Matthew Kerwin <matthew@kerwin.net.au>
References: <20161213173327.C1F7D1714B@welho-filter2.welho.com> <20161213175419.GA7943@LK-Perkele-V2.elisa-laajakaista.fi> <25434.1481665395@critter.freebsd.dk> <201612140628.uBE6SO3L025885@shell.siilo.fmi.fi> <36792.1481701328@critter.freebsd.dk> <CACweHNDKgWQewZHb=Kz3_2=41M58sY5472Q5OwpqPLxorvkzHQ@mail.gmail.com> <37223.1481707288@critter.freebsd.dk> <3a65ca44-f652-3b14-6d64-46f35b32df57@isode.com>
Cc: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, Ilari Liusvaara <ilariliusvaara@welho.com>, HTTP working group mailing list <ietf-http-wg@w3.org>, Poul-Henning Kamp <phk@varnish-cache.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <725824b9-de61-2650-4007-fb5b026bc7a6@gmx.de>
Date: Wed, 14 Dec 2016 11:21:35 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <3a65ca44-f652-3b14-6d64-46f35b32df57@isode.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:3RvFdFPH6xFfPF62DAof8QCx6/ZL8vkQEagS1MhvWqrUy7VGlca E1W5JaBxQcXLPwaICb/akLn2MmoDlF3pcabAp0ngpDVdiRdf7DOGrMhPFYhUZn5f1Ed3Kx0 hYNx6t7nqvvCxZ2iK3zG+Vy9sgLzmgMgB6do3FPCCoHHlHd37T0vo7XXuNdDQr0gtqsoFQ9 pnCfanXoYbKN5do6s/jSA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:HHF7a484Uhc=:HCMaGiBoNHC3coMmHuLP+5 FWccjMX0/qQoHOKkubMjkafJwqPLZf56QqtFh9U2SMG73A4cyUZxx9qjhoQKL1yGwfdmCfihL sC14rex1QIrZcDKemOk6OKGT2NcQC/Dti4U2S2eNxoKzjAEtf0XVzLX3Xh/Kq4KOKMv6XAdQp ZnJ/jQj/jjl0jXp/ltwlNzSj0KNosqr/fdPlXzyWN/+NbizUIUy65RoBlJWxmj255Yh/7XAJo bifdxS+eFu9hTRWNp2tzQE/enN/wuCI5I3GIsaEO4yi6vchCbNRNgdwJhan9zb3hJxFOGLww/ +h9tlxLD5nii+QIN0hMm1gulU0PWhxyNJ4dnXJWhbGHFhACnc2xPJfxYxsmyxw/89bMf8L5Ak lHic1fw8ZL8pfyQzjKEPS2yHoIlz4yP1OItyjzyofVtNIPwc/Rk4ZUTd7mlyfEKOViDRfDL0/ uVj2fuuIxpynepzUrxeku6WgZrbVKZrQt5toHsoMON3P9qK4eBV3/l1MkTozNVB3yC2ZQF/ai MvsXAGQyq0VhXw7v+CVzxa0GV0ZESvEDUboGDjH+Kp742IB7k5YOx+Do8tzvKbnBfc44J2454 ngVwH+IxEqz4PZAHxX2Y/X+uMpLjchlMUKw5jJMU3yKN469SnlTleyFob1jWKCNdBbE5gCg7l 9xJKaBpf+/SBZKXLGOEcZCH03ZPw+LWaO8BxDoM9TF48iR/YoHiGL4ENIUYXk7REZ+imO3hhd A8x/P/dW2gi66huWFH8SfpdJ4yI9q6fe8ehe+yvrFLMrE/cqnfawEcjMEJUl1aQhTmPt9jJ8I ol6iRw1
Received-SPF: pass client-ip=212.227.15.15; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=-0.018, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cH6iH-0000QO-Nl f31d11c5e0fe2a9a4fe181110497344c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Unicode escape sequence | Re: draft-ietf-httpbis-header-structure-00, unicode range
Archived-At: <http://www.w3.org/mid/725824b9-de61-2650-4007-fb5b026bc7a6@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33185
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-12-14 10:59, Alexey Melnikov wrote:
> On 14/12/2016 09:21, Poul-Henning Kamp wrote:
>
>> --------
>> In message
>> <CACweHNDKgWQewZHb=Kz3_2=41M58sY5472Q5OwpqPLxorvkzHQ@mail.gmail.com>
>> , Matthew Kerwin writes:
>>
>>> If we're looking for inspiration elsewhere, why not C99?
>>>
>>>       "\" %x75 1*4HEXDIG
>>>     / "\" %x55 1*6HEXDIG  ; C99 accepts 1*8
>> The variable length means these run into the mess of "what if the
>> next character is a hex digit?".
>>
>> That's a much bigger issue when we're talking about code spitting
>> out strings than when it is programmers typing them in.
>>
>> I would prefer to make them fixed length:
>>
>>     "\" "u" 4HEXDIG
>>     "\" "U" 6HEXDIG
> IETF has published BCP 137, which should be followed, unless there is a
> very good reason not to:
>  https://www.rfc-editor.org/bcp/bcp137.txt
>
> See section 5.1.

Which says:

>    EmbeddedUnicodeChar =  %x5C.75.27 4*6HEXDIG %x27
>       ; starting with lowercase "\u" and "'" and ending with "'".
>       ; Note that the encodings are considered to be abstractions
>       ; for the relevant characters, not designations of specific
>       ; octets.
>
>    HEXDIG =  "0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" /
>       "A" / "B" / "C" / "D" / "E" / "F"
>       ; effectively identical with definition in RFC 5234.

Has this ever been used in a protocol?

Best regards, Julian