Bug 914 – char[] ~= wchar results in invalid UTF-8
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-02-01T04:22:00Z
Last change time
2014-02-16T15:22:35Z
Assigned to
bugzilla
Creator
oskar.linde
Comments
Comment #0 by oskar.linde — 2007-02-01T04:22:46Z
I'm not sure this classifies as a bug, but the behavior is somewhat surprising and, I'm sure, never intended.
char[] str = "test".dup;
str ~= 'é';
Results in str containing an illegal UTF-8 encoded string.
Comment #1 by oskar.linde — 2007-02-01T15:59:14Z
Confirmed, this is a duplicate of issue 111.
*** This bug has been marked as a duplicate of 111 ***