[Issue 10668] Unicode characters, when taken from strings (as char), are not printed correctly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 19 01:58:31 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10668



--- Comment #1 from Matt Carter <MATTCA at sky.com> 2013-07-19 01:58:27 PDT ---
The content of the attachment, just in case:

module main;

import std.stdio;

void main(string[] args) {
    string s = "£££";
    writeln(s); // Output: £££

    char c = s[0];
    writeln(c); // Output: ?

    writeln(s[0]); // Output: ?
}

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


More information about the Digitalmars-d-bugs mailing list