[Issue 15845] Windows console cannot read properly UTF-8 lines
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Apr 3 07:45:43 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15845
--- Comment #4 from ag0aep6g at gmail.com ---
(In reply to ag0aep6g from comment #2)
> The issue does not manifest with a pipe: `echo รค | test` works.
It seems to be a problem with input from a TTY. Normal stdin is a TTY, but when
a pipe is used it's not. According to _isatty [1], stdin is also not a TTY when
I run things in the bash from Git for Windows. And indeed: no UTF-8 problems
there.
[1] https://msdn.microsoft.com/en-us/library/f4s0ddew.aspx
--
More information about the Digitalmars-d-bugs
mailing list