[Mono-bugs] [Bug 69059][Min] Changed - patch for report.cs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 8 Nov 2004 21:53:12 -0500 (EST)


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 carlos@unixmexico.org.

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

--- shadow/69059	2004-11-08 21:49:07.000000000 -0500
+++ shadow/69059.tmp.21599	2004-11-08 21:53:11.000000000 -0500
@@ -1,25 +1,37 @@
 Bug#: 69059
 Product: Mono: Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: danw@novell.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: errors are printed to stdout rather than stderr
+Summary: patch for report.cs
 
 mcs prints errors to stdout rather than stderr, which means you can't
 do "make > /dev/null" to see just the errors
 
 ------- Additional Comments From carlos@unixmexico.org  2004-11-08 21:49 -------
 Created an attachment (id=13186)
 Patch
 
+
+------- Additional Comments From carlos@unixmexico.org  2004-11-08 21:53 -------
+I have attached a file that makes a small change in the class
+AbstractMessage, that lives in report.cs: It now has as a protected
+member a TextWriter instance, by which the output is done.
+
+This way is possible to pass as a parameter a custom TextWriter (and
+maybe automatically re-direct the output of warning or errors), or
+just use the default behavior of Warning and ErrorMessage (the first
+still uses System.Console.Out, and the second uses System.Console.Error).
+
+Carlos.