Summary: readf cannot read wchar or dchar from UTF-8 stdin
--- Comment #0 from Ali Cehreli <acehr...@yahoo.com> 2011-03-16 13:20:54 PDT ---
I compiled the following program with dmd 2.052 on an Ubuntu 10.10 console.
The following program reads only the first code unit instead of the whole
wchar c; // Please note: same problem with dchar as well
readf(" %s", &c);
For example when the input is the character � (encoded with byte values 195 182
in UTF-8), only the first code unit is read and the output becomes the Unicode
character that corresponds to the value of that code unit.
In a sense, the program reads a code unit and outputs it as a code point.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------