<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - numpunt_byname and moneypunct_byname cannot represent multibyte decimal_point or thousands_sep."
href="https://llvm.org/bugs/show_bug.cgi?id=30302">30302</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>numpunt_byname and moneypunct_byname cannot represent multibyte decimal_point or thousands_sep.
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eric@efcs.ca
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The virtual functions they use to return the separators only return a single
character. If the requested locale uses multibyte separators then these facets
have no way to represent those. For example ru_RU.UTF-8 uses \u00A0 as the
thousands_sep on glibc. Unfortunatly libc++ can only return the first byte of
that when the underlying char_type is 'char'. The first byte is 0xC2 which ends
up creating an invalid utf-8 string.
This probably requires a LWG issue and a fix in the standard.
See also: <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16006">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16006</a></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>