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

Alexey Melnikov <alexey.melnikov@isode.com> Wed, 14 December 2016 10:04 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 EE8F01299FD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2016 02:04:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.897
X-Spam-Level:
X-Spam-Status: No, score=-9.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isode.com
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 zlseJkY17rKM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2016 02:04:14 -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 643F51299E1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Dec 2016 02:04:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cH6Mv-0003xe-Kr for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Dec 2016 10:01:01 +0000
Resent-Date: Wed, 14 Dec 2016 10:01:01 +0000
Resent-Message-Id: <E1cH6Mv-0003xe-Kr@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <alexey.melnikov@isode.com>) id 1cH6Md-0003vf-T5 for ietf-http-wg@listhub.w3.org; Wed, 14 Dec 2016 10:00:43 +0000
Received: from statler.isode.com ([62.232.206.189]) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <alexey.melnikov@isode.com>) id 1cH6MX-00034e-V4 for ietf-http-wg@w3.org; Wed, 14 Dec 2016 10:00:38 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1481709611; d=isode.com; s=june2016; i=@isode.com; bh=XVQhiUBcF+/RXXFkmT6dvVDfCfwMnczEx85uoG/FpMc=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=FpC/ceaeA69UGuH9oiHg3QDnf2WQJDd3NWKFA7u2iIWcgpqVKOovm8Uj+ENTje1XAG7V8b FRNy/Uk80d7WPvTbIlQehK95ZZtoBt+sqzzUcyjSk6K4VJxBIJuK7FR6svbORotaytN+Ju srMo3duO3qkF+Z/Spx8MqIXaa84/bms=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215]) by statler.isode.com (submission channel) via TCP with ESMTPSA id <WFEYKQAY1wVs@statler.isode.com>; Wed, 14 Dec 2016 10:00:10 +0000
To: 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>
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: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <3a65ca44-f652-3b14-6d64-46f35b32df57@isode.com>
Date: Wed, 14 Dec 2016 09:59:52 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
In-Reply-To: <37223.1481707288@critter.freebsd.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=62.232.206.189; envelope-from=alexey.melnikov@isode.com; helo=statler.isode.com
X-W3C-Hub-Spam-Status: No, score=-7.5
X-W3C-Hub-Spam-Report: AWL=3.633, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-3.099, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1cH6MX-00034e-V4 5e9ee3d9d424ea9b553f9fe354ee9b20
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/3a65ca44-f652-3b14-6d64-46f35b32df57@isode.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33182
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 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.