[Mono-bugs] [Bug 81159][Nor] Changed - Console.In.Read doesn't allow line-oriented input with mscorlib 2.0

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 18 17:09:33 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by fejj at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81159

--- shadow/81159	2007-04-18 16:30:31.000000000 -0400
+++ shadow/81159.tmp.30151	2007-04-18 17:09:33.000000000 -0400
@@ -151,6 +151,18 @@
 the user pasted a unix-formatted text blurb - in which case I'd argue
 it should Just Work(tm). No?
 
 
 ------- Additional Comments From gert.driesen at pandora.be  2007-04-18 16:30 -------
 You're right. I forgot that it wasn't used on Windows.
+
+------- Additional Comments From fejj at novell.com  2007-04-18 17:09 -------
+> Also, on Mono the second read immediately finishes while on MS it 
+> wait until the user presses enter.
+
+I don't think this can be fixed. The only way to behave the same as on
+Windows is by telling the difference between a '\n' in the input
+stream and the user hitting Enter.
+
+
+this whole bug is turning into a non-trivial mess to emulate. I'm not
+sure I can figure out how to do it and be fully compatible with MS :(


More information about the mono-bugs mailing list