This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: libstdc++/9533: Regression: Can't read from tty with ifstream


>     Something is wrong, agreed, but I cannot reproduce the
>     regression thing: for me (*), 3.2.2 asks the number but
>     then hangs upon <newline>. Same behaviour 3.0.4.

Just to clarify, this is of course correct behaviour since the
input stream is in fully buffered mode (*). The "hang" happens
because filebuf::underflow() blocks until either BUFSIZ
characters are entered or EOF occurs.

Petur

* The reason the test case uses fully buffered is that
unbuffered doesn't work (libstdc++/9024).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]