[Mono-bugs] [Bug 31685][Min] New - mcs generated exes on linux don't work on windows

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
3 Oct 2002 14:36:49 -0000


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 gonzalo@ximian.com.

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

--- shadow/31685	Thu Oct  3 10:36:48 2002
+++ shadow/31685.tmp.9233	Thu Oct  3 10:36:48 2002
@@ -0,0 +1,44 @@
+Bug#: 31685
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs generated exes on linux don't work on windows
+
+Steps to reproduce the problem:
+1. I compiled this simple program on linux:
+
+using System;
+using System.IO;
+
+class StreamTest
+{
+        public static void Main ()
+        {
+                System.IO.Stream str=File.OpenRead ("/");
+                System.IO.StreamReader rd=new System.IO.StreamReader (str);
+                int p=rd.Peek ();
+                Console.WriteLine ("{0}", p);
+        }
+}
+
+2. Then copied it to windows and tried ./openread.exe and mono openread.exe
+
+Actual Results:
+MS runtime: outputs (null) and exits.
+Mono runtime: throws an exception (as expected)
+
+
+Expected Results:
+Both runtimes should throw an UnauthorizedAccessException.