bug-guile
[Top][All Lists]
Advanced

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

duplicates handlers warnings should go to stderr, not stdout


From: Andy Wingo
Subject: duplicates handlers warnings should go to stderr, not stdout
Date: Sat, 01 Sep 2007 18:19:46 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

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/




reply via email to

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