www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4522] New: Write outputs Unicode incorrectly (on Windows)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4522

           Summary: Write outputs Unicode incorrectly (on Windows)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2010-07-27
18:11:25 PDT ---
import std.stdio;

void main() {
   string str = "Hall\u00E5, V\u00E4rld!";
   foreach (dchar c; str) {
       write('[', c, ']');
   }
   writeln();
}

Prints:
[H][a][l][l][å][,][ ][V][ä][r][l][d][!]

Instead of:
[H][a][l][l][][,][ ][V][][r][l][d][!]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 27 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4522


Stewart Gordon <smjg iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |smjg iname.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Stewart Gordon <smjg iname.com> 2010-07-28 10:42:40 PDT ---
*** This issue has been marked as a duplicate of issue 2742 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 28 2010