https://bugzilla.novell.com/show_bug.cgi?id=395090


           Summary: TextReader.Peek has a different behaviour with
                    runtime=v2.0.5072
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: x86
        OS/Version: FreeBSD
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: Development


TextReader.Peek has a different behaviour when I run the compiled software with
runtime=v2.0.5072 (look below). According to MSDN, "The current position of the
TextReader is not changed by this operation." So, the v2 runtime has a bug (it
shouldn't drop the characters).

$ cat test.cs
using System;
public class Test
{
  public static void Main() {
    Console.In.Peek();
    Console.WriteLine(Console.ReadLine());
  }
}

$ mcs test.cs
$ mono --runtime=v2.0.50727 test.exe
qwer   # my input
asdf   # my input
asdf   # output
$ mono test.exe
qwer   # my input
qwer   # output


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to