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

On 2016-12-14 10:28, Martin Thomson wrote:
> 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.

...and very easy to get wrong.

Received on Wednesday, 14 December 2016 10:16:46 UTC