W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2016

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

From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Date: Wed, 14 Dec 2016 09:21:28 +0000
To: Matthew Kerwin <matthew@kerwin.net.au>
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>
Message-ID: <37223.1481707288@critter.freebsd.dk>
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 

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Wednesday, 14 December 2016 09:22:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 14 December 2016 09:22:50 UTC