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

Martin Thomson <martin.thomson@gmail.com> Wed, 14 December 2016 09:32 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 B654A12956C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2016 01:32:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.397
X-Spam-Level:
X-Spam-Status: No, score=-9.397 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, RCVD_IN_SORBS_SPAM=0.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 (2048-bit key) header.d=gmail.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 NUM16O5gr6mt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Dec 2016 01:32:05 -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 577B1129503 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Dec 2016 01:32:05 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cH5t3-0000vA-1g for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Dec 2016 09:30:09 +0000
Resent-Date: Wed, 14 Dec 2016 09:30:09 +0000
Resent-Message-Id: <E1cH5t3-0000vA-1g@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 <martin.thomson@gmail.com>) id 1cH5sv-0005bc-RS for ietf-http-wg@listhub.w3.org; Wed, 14 Dec 2016 09:30:01 +0000
Received: from mail-qk0-f176.google.com ([209.85.220.176]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <martin.thomson@gmail.com>) id 1cH5sM-0005bi-46 for ietf-http-wg@w3.org; Wed, 14 Dec 2016 09:29:56 +0000
Received: by mail-qk0-f176.google.com with SMTP id x190so13133366qkb.0 for <ietf-http-wg@w3.org>; Wed, 14 Dec 2016 01:29:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KzRJqh56pfVGxPRV76jQ4CV14CjCMUHdNa3c4LYvBRo=; b=ybHTPjtkJdpMIN6WZ0kJCSqLUSNc9q6hvaO7ZAl7xWE6Rm3KbSmdTAM+Hqm6B+FXOa OWI3lPCV+Wa3xvHmO16WXgbPcnhDNfxjKio2zkZMsguC1gCVnOXeA/fOM3iZKDEBb6p9 c4q1LwPQ4+ADCNKnEliCkJZ78pkNUt1dSwU2ELlcFt9IY3s43AG797lAcWv99/MPX7vx n50+LjzzglQIjKp86sDURrUp9jCxuNs0HZZCCzb/lyePkWdY4DQ9EUi9fZBuTez+C8RJ az4/rJuMsxI+l7YYTw6BPMroI3+3CvatkFWVD4gOeHY0Nnf+tnZcpDtOh0pFgzlvXJar EjiA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KzRJqh56pfVGxPRV76jQ4CV14CjCMUHdNa3c4LYvBRo=; b=HG77FUed/3nahqMUYdA+IUrBjOhh4p3VQRTLXv+0CQx0I/UAC0oux7VBU1mYLun879 YyZ2ZBCwlJYhvSq0CdrtJWQmBaFra3pjjzb42V9FSfgdSent1mk6bSXOPJQSdi7u1f0s jDMr6HJqF5Lkerlnn5fJrgWqoZUKMJD/oLHzI4k8yr+DY/wMQ+dYT2GSE+RgExF0xaRi 5FIlxVa7V8dzDl0/z/GV8ClMfCO4HppBup8PuT2J0hBTM7Q0ppaEFsJ89vc12WaHdhvY 1Uliu9f98jxCqNbNEqhMfscDtQNjIMt9Y7oOS318jIzVpRePuE4D6IEh6w0Dv1Eb9fVi Eqqg==
X-Gm-Message-State: AKaTC025PtHKTrAQEOeJgn7pQyQe2dAc5yD1Powu4vLY0hrtZts3AUFlCzLPd4QMhoEW1LqcoSg6wzbbE8S5Rg==
X-Received: by 10.55.126.193 with SMTP id z184mr54355354qkc.115.1481707739813; Wed, 14 Dec 2016 01:28:59 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.38.233 with HTTP; Wed, 14 Dec 2016 01:28:59 -0800 (PST)
In-Reply-To: <37223.1481707288@critter.freebsd.dk>
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>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 13 Dec 2016 23:28:59 -1000
Message-ID: <CABkgnnU+f74-KfKQT9CG1oGxCv-XvaZb+6eApXk9zpBNcMGUHg@mail.gmail.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Matthew Kerwin <matthew@kerwin.net.au>, 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>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.220.176; envelope-from=martin.thomson@gmail.com; helo=mail-qk0-f176.google.com
X-W3C-Hub-Spam-Status: No, score=0.5
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, TIME_LIMIT_EXCEEDED=0
X-W3C-Scan-Sig: titan.w3.org 1cH5sM-0005bi-46 4eb4423394389b63b83bc261bd5e4def
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/CABkgnnU+f74-KfKQT9CG1oGxCv-XvaZb+6eApXk9zpBNcMGUHg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33181
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 13 December 2016 at 23:21, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
>>      "\" %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?".

I assume that if the next character is a hex digit, you have to
exhaust the sequence by left padding with 0.  It makes the grammar a
little harder to parse though.