<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Unicode string literals"
href="https://bugs.llvm.org/show_bug.cgi?id=37044">37044</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unicode string literals
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Bumblebritches57@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>`\x` Does not work with Unicode characters outside of the BMP for example
U+1F984, and `\u` and `\U` (for UTF-16 and UTF-32) will not work with Unicode
characters in the ASCII range (for example, 0x20, the space).
I'm not entirely sure what to do here, I ran into this problem because I'm
writing a script to parse the Unicode Character Database to create some tables
in C for my library, StringIO.
Example code:
uint_least32_t Space32_1[] = U"\x20";
uint_least32_t Space32_2[] = U"\U20";
uint_least32_t Unicorn32_1[] = U"\x1F984";
uint_least32_t Unicorn32_2[] = U"\U1F984";</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>