Thread overview
[Issue 914] New: char[] ~= wchar results in invalid UTF-8
Feb 01, 2007
d-bugmail
Feb 01, 2007
Lionello Lunesu
Feb 01, 2007
d-bugmail
February 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=914

           Summary: char[] ~= wchar results in invalid UTF-8
           Product: D
           Version: 1.004
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: oskar.linde@gmail.com


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.


-- 

February 01, 2007
I suspect this is the same problem as described by issue 111.


February 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=914


oskar.linde@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Comment #1 from oskar.linde@gmail.com  2007-02-01 15:59 -------
Confirmed, this is a duplicate of issue 111.

*** This bug has been marked as a duplicate of 111 ***


--