Created on 2009-07-06.00:00:00 last changed 179 months ago
[Voted into WP at March, 2010 meeting.]
Proposed resolution (October, 2009):
Change 5.13.9 [lex.ext] paragraph 5 as follows:
If L is a user-defined-string-literal, let str be the literal without its ud-suffix and let len be the number ofcharacters (or code points)code units in str (i.e., its length excluding the terminating null character)...
5.13.9 [lex.ext] paragraph 5 says,
If L is a user-defined-string-literal, let str be the literal without its ud-suffix and let len be the number of characters (or code points) in str (i.e., its length excluding 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 one byte, so this sentence is inconsistent and needs to be revised to make clear which definition is in view.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-03-29 00:00:00 | admin | set | messages: + msg2654 |
2010-03-29 00:00:00 | admin | set | status: ready -> cd2 |
2009-11-08 00:00:00 | admin | set | messages: + msg2336 |
2009-11-08 00:00:00 | admin | set | status: open -> ready |
2009-07-06 00:00:00 | admin | create |