This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 119a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-12-20
[Voted into WP at March, 2010 meeting.]
5.13.9 [lex.ext] paragraph 5 says,
IfL is auser-defined-string-literal, letstr bethe literal without itsud-suffix and letlen be thenumber of characters (or code points) instr (i.e., its lengthexcluding the terminating null character).
The length of a null-terminated string is defined in 16.3.3.3.4.2 [byte.strings] as the number of bytes preceding the terminator,but a single code point in a UTF-8 string can require more than onebyte, so this sentence is inconsistent and needs to be revised to makeclear which definition is in view.
Proposed resolution (October, 2009):
Change 5.13.9 [lex.ext] paragraph 5 as follows:
IfL is auser-defined-string-literal, letstr bethe literal without itsud-suffix and letlen be thenumber ofcharacters (or code points)code unitsinstr (i.e., its length excluding the terminating nullcharacter)...