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

In message <>
, 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