[prev in list] [next in list] [prev in thread] [next in thread]
List: gnulib-bug
Subject: Re: portability of fopen and 'e' (O_CLOEXEC) flag
From: Bruno Haible <bruno () clisp ! org>
Date: 2020-05-29 6:25:58
Message-ID: 4838618.jViEDvakL2 () omega
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic