[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with wide characters on upgrading to guile 2.x
From: |
Ludovic Courtès |
Subject: |
Re: Problem with wide characters on upgrading to guile 2.x |
Date: |
Mon, 02 Sep 2013 22:01:03 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Richard Shann <address@hidden>
skribis:
> address@hidden:~/local/bin$ export LANG=pt_BR.utf8
> address@hidden:~/local/bin$ ./denemo
>
> (process:7073): Gtk-WARNING **: Locale not supported by C library.
> Using the fallback 'C' locale.
> Backtrace:
> In ice-9/boot-9.scm:
> 149: 2 [catch #t #<catch-closure 216f4e0> ...]
> 157: 1 [#<procedure 210e0f0 ()>]
> In unknown file:
> ?: 0 [catch-closure]
>
> ERROR: In procedure catch-closure:
> ERROR: In procedure setlocale: Invalid argument
Apparently pt_BR.utf8 is not a supported locale on your system.
To gracefully handle this case (like GTK+ does above), just wrap the
‘setlocale’ call:
(catch 'system-error
(lambda ()
(setlocale LC_ALL ""))
(lambda args
(format (current-error-port)
"warning: failed to install locale: ~a~%"
(strerror (system-error-errno args))))
HTH,
Ludo’.
Re: Problem with wide characters on upgrading to guile 2.x, Andy Wingo, 2013/09/07