[Issue 22909] New: importC: u8 strings rejected by parser
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 20 19:58:52 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22909
Issue ID: 22909
Summary: importC: u8 strings rejected by parser
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
C11 6.4.5 String literals
string-literal:
encoding-prefix(opt) " s-char-sequence(opt) "
encoding-prefix:
u8
u
U
L
6.4.5-4: A character string literal is a sequence of zero or more multibyte
characters enclosed in double-quotes, as in "xyz". A UTF−8 string literal is
the same, except prefixed by u8.
6.4.5-6: For UTF−8 string literals, the array elements have type char, and are
initialized with the characters of the multibyte character sequence, as encoded
in UTF−8.
--
More information about the Digitalmars-d-bugs
mailing list