* module/ice-9/top-repl.scm (top-repl): Catch exceptions from
`setlocale'. Reported by CRLF0710 <crlf0710@gmail.com>.
(call-with-sigint
(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)
status)))))