|
Boost Users : |
Subject: Re: [Boost-users] [nowide] Cannot end input using ^Z/^D on Windows
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2015-04-24 08:31:25
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 -----
> From: Gavin Lambert <gavinl_at_[hidden]>
> To: boost-users_at_[hidden]
> Cc:
> Sent: Friday, April 24, 2015 11:59 AM
> Subject: Re: [Boost-users] [nowide] Cannot end input using ^Z/^D on Windows
>
> On 24/04/2015 19:23, Yuan Yao wrote:
>> I try to get input via boost::nowide::cin. However, I cannot not end the
>> stream with ^Z/^D.
>>
>> It seems that nowide::details::console_input_buffer::read recognizes
>> ^Z/^D as a regular character.
>
> 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.
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net