[Issue 12990] utf8 string not read/written to windows console

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 25 17:35:23 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12990

--- Comment #19 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Sum Proxy from comment #18)
> scanf and strlen rely on '\0' to indicate string termination, but I don't
> think this goes well with unicode strings.

Not true. At least, not true with UTF-8, which is what we set the CP to.

> I believe the right way to do something similar (without buffer length) is
> this:

I would not say that's the "right" way. That's the way to read wchar_t text,
but we need UTF-8 text.

--


More information about the Digitalmars-d-bugs mailing list