pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #5524] Error file command line option


From: Ben Pfaff
Subject: [patch #5524] Error file command line option
Date: Sun, 05 Nov 2006 18:00:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-1)

Follow-up Comment #1, patch #5524 (project pspp):

There's something that bothers me about this.  I think it's that we're not
using the standard streams the way we're supposed to: output should go to
stdout, errors to stderr.

What if, instead of applying this patch, we just fixed the problem with the
streams:

--- msg-ui.c.~1.4.~     2006-11-04 21:24:56.000000000 -0800
+++ msg-ui.c    2006-11-05 10:00:21.000000000 -0800
@@ -142,7 +142,7 @@ handle_msg (const struct msg *m)
   ds_put_cstr (&string, m->text);
 
   if (get_error_routing_to_terminal ())
-    dump_message (ds_cstr (&string), get_viewwidth (), 8, stdout);
+    dump_message (ds_cstr (&string), get_viewwidth (), 8, stderr);
 
   ds_destroy (&string);
 }


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?5524>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]