|
Boost Users : |
Subject: Re: [Boost-users] [nowide] Cannot end input using ^Z/^D on Windows
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2015-04-24 04:59:11
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 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