www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 914] New: char[] ~= wchar results in invalid UTF-8

reply d-bugmail puremagic.com writes:
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.


-- 
Feb 01 2007
next sibling parent "Lionello Lunesu" <lionello lunesu.remove.com> writes:
I suspect this is the same problem as described by issue 111. 
Feb 01 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=914


oskar.linde gmail.com changed:

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





Confirmed, this is a duplicate of issue 111.

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


-- 
Feb 01 2007