Daiki Ueno wrote:
> Afterwards, I realized a
> compilation error in the test code on FreeBSD, so I've added the
> follow-up patch attached.

Indeed, octal and hexadecimal escape sequences are not limited to 3 or 2
digits. ISO C 11 section 6.4.4.4 says:

  "The hexadecimal digits that follow the backslash and the letter x in a
   hexadecimal escape sequence are taken to be part of the construction ..."

  "Each octal or hexadecimal escape sequence is the longest sequence of
   characters that can constitute the escape sequence."

I had forgotten about it too.

> "abc\x1adef"

One way to write it would be "abc\x1a" "def". Or "abc\032def".

Bruno


Reply via email to