Bug 22909 – importC: u8 strings rejected by parser
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-20T19:58:52Z
Last change time
2022-03-20T23:47:16Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2022-03-20T19:58:52Z
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.
Comment #1 by dlang-bot — 2022-03-20T20:23:23Z
@ibuclaw created dlang/dmd pull request #13848 "fix Issue 22909 - importC: u8 strings rejected by parser" fixing this issue:
- fix Issue 22909 - importC: u8 strings rejected by parser
https://github.com/dlang/dmd/pull/13848
Comment #2 by dlang-bot — 2022-03-20T23:47:16Z
dlang/dmd pull request #13848 "fix Issue 22909 - importC: u8 strings rejected by parser" was merged into master:
- c0cbb8b501464d34626b682ceb10647ad931d6b7 by Iain Buclaw:
fix Issue 22909 - importC: u8 strings rejected by parser
https://github.com/dlang/dmd/pull/13848