[Mono-bugs] [Bug 75018][Wis] Changed - [PATCH] Report 'file' is a
binary file instead of a source code file
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat May 21 13:26:51 EDT 2005
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 bmaurer at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=75018
--- shadow/75018 2005-05-21 13:24:26.000000000 -0400
+++ shadow/75018.tmp.29149 2005-05-21 13:26:51.000000000 -0400
@@ -11,13 +11,13 @@
AssignedTo: mono-bugs at ximian.com
ReportedBy: bmaurer at users.sf.net
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: Report 'file' is a binary file instead of a source code file
+Summary: [PATCH] Report 'file' is a binary file instead of a source code file
According to MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vcerrCompilerErrorSC2015.asp
Compiler Error CS2015
@@ -48,6 +48,25 @@
bytes, so they would all be detected.
------- Additional Comments From bmaurer at users.sf.net 2005-05-21 13:24 -------
Created an attachment (id=15182)
Patch
+
+------- Additional Comments From bmaurer at users.sf.net 2005-05-21 13:26 -------
+This patch detects binary files as mentioned above. We now get the
+following error:
+
+[benm at linux mcs]$ mono mcs2.exe mcs2.exe
+error CS2015: Source file 'mcs2.exe' is a binary file.
+Compilation failed: 1 error(s), 0 warnings
+
+Rather than
+
+[benm at linux mcs]$ mcs mcs2.exe
+syntax error, got token `ERROR'
+mcs2.exe(1) error CS8025: Parsing error
+Compilation failed: 1 error(s), 0 warnings
+
+MCS is able to bootstrap -- this tests the case of a file > 4 kb, and
+a file smaller (which is why I need to do the int n = stuff on the
+stream).
More information about the mono-bugs
mailing list