[Issue 1448] UTF-8 output to console is seriously broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 7 00:55:47 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=1448
Axel Bender <ben at world-of-ben.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ben at world-of-ben.de
Platform|x86 |x86_64
Version|D1 & D2 |D2
--- Comment #9 from Axel Bender <ben at world-of-ben.de> 2013-08-07 00:55:43 PDT ---
I can confirm this issue. When enumerating a directory (via dirEntries())
containing a file with a character in the CP850/CP1252 space (e.g. "säb"),
depending on the codepage settings, the output is as follows:
chcp 1252 => output is "säb" (Unicode encoding for "ä")
chcp 65001 => output is
"säbstd.exception.ErrnoException at D:\tools\d\bin\..\src\phobos\std\stdio.d(1352):
(No error)"
In both cases e.g. cmd's dir shows the correct results.
The correct results are also shown when using - not really comparable - C with
printf().
Tried the case in cmd, console2, and conemu. All show the same results.
It'd really be nice if this bug would get fixed...
--
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