[Top][All Lists]

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

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-216-g94b55

From: Ludovic Courtès
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.0-216-g94b55d3
Date: Tue, 26 Apr 2011 22:58:59 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

The branch, stable-2.0 has been updated
       via  94b55d3fa046523e13de9df1c2fb39280f4842e8 (commit)
      from  fb9cfa83a7fae2ba5afdb4d0666446f44593f1fa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 94b55d3fa046523e13de9df1c2fb39280f4842e8
Author: Ludovic Courtès <address@hidden>
Date:   Wed Apr 27 00:57:16 2011 +0200

    Gracefully handle `setlocale' errors at the REPL.
    * module/ice-9/top-repl.scm (top-repl): Catch exceptions from
      `setlocale'.  Reported by CRLF0710 <address@hidden>.


Summary of changes:
 module/ice-9/top-repl.scm |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/module/ice-9/top-repl.scm b/module/ice-9/top-repl.scm
index 64c0239..d43436c 100644
--- a/module/ice-9/top-repl.scm
+++ b/module/ice-9/top-repl.scm
@@ -65,7 +65,14 @@
      (lambda ()
        (and (defined? 'setlocale)
-            (setlocale LC_ALL ""))
+            (catch 'system-error
+              (lambda ()
+                (setlocale LC_ALL ""))
+              (lambda (key subr fmt args errno)
+                (format (current-error-port)
+                        "warning: failed to install locale: ~a~%"
+                        (strerror (car errno))))))
        (let ((status (start-repl 'scheme)))
          (run-hook exit-hook)

GNU Guile

reply via email to

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