[nowide] Cannot end input using ^Z/^D on Windows

24 Apr
24 Apr
8:59 a.m.
On 24/04/2015 19:23, Yuan Yao wrote:
This would be a consequence of opening the stream in binary mode rather than text mode. (Text mode will only recognise ^Z.) I'm not sufficiently familiar with nowide to tell you whether this is something you can fix in the application or whether it will require a fix to nowide, or if this is intentional for some reason.

12:31 p.m.
What ReadConsoleW should return in such a case?.. I hadn't tested the "EOF" feature of the console. Can you put some debug code to iostream.cpp:171 to see what ReadConsoleW returns? Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ ----- Original Message -----
3629
Age (days ago)
3629
Last active (days ago)
2 comments
3 participants
participants (3)
-
Artyom Beilis
-
Gavin Lambert
-
Yuan Yao