unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* duplicates handlers warnings should go to stderr, not stdout
@ 2007-09-01 16:19 Andy Wingo
  2007-09-01 17:11 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2007-09-01 16:19 UTC (permalink / raw)
  To: bug-guile

Currently warnings about duplicates, etc are printed to the current
output port, whereas they should go to the error port.

Index: ice-9/boot-9.scm
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/ice-9/boot-9.scm,v
retrieving revision 1.356.2.9
diff -u -u -r1.356.2.9 boot-9.scm
--- ice-9/boot-9.scm	8 Aug 2007 15:04:30 -0000	1.356.2.9
+++ ice-9/boot-9.scm	1 Sep 2007 16:18:05 -0000
@@ -3055,7 +3055,7 @@
 		 #f))
     
     (define (warn module name int1 val1 int2 val2 var val)
-      (format #t
+      (format (current-error-port)
 	      "WARNING: ~A: `~A' imported from both ~A and ~A\n"
 	      (module-name module)
 	      name
@@ -3077,7 +3077,7 @@
     (define (warn-override-core module name int1 val1 int2 val2 var val)
       (and (eq? int1 the-scm-module)
 	   (begin
-	     (format #t
+	     (format (current-error-port)
 		     "WARNING: ~A: imported module ~A overrides core binding `~A'\n"
 		     (module-name module)
 		     (module-name int2)

-- 
http://wingolog.org/


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: duplicates handlers warnings should go to stderr, not stdout
  2007-09-01 16:19 duplicates handlers warnings should go to stderr, not stdout Andy Wingo
@ 2007-09-01 17:11 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2007-09-01 17:11 UTC (permalink / raw)
  To: bug-guile

Hi,

Andy Wingo <wingo@pobox.com> writes:

> Currently warnings about duplicates, etc are printed to the current
> output port, whereas they should go to the error port.

Applied.

Thanks!

Ludovic.



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-01 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-01 16:19 duplicates handlers warnings should go to stderr, not stdout Andy Wingo
2007-09-01 17:11 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).