[Top][All Lists]

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

bug#22750: Output port encoding isn't correctly set

From: Mark H Weaver
Subject: bug#22750: Output port encoding isn't correctly set
Date: Fri, 26 Feb 2016 13:53:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux)

tags 22750 + notabug
close 22750

Roland Lutz <address@hidden> writes:
> I've encountered a behavior in Guile 2.0.11 which I believe is a
> bug. When running Guile in a UTF-8 locale, I'd expect that the output
> port encoding is set to UTF-8 unless specified otherwise.  However, it
> appears to be not set at all.

In Guile 2.0.x, as in C, the locale is not set until you set it using
'setlocale'.  To set the locale according to the standard environment
variables, put this at the beginning of your script:

  (setlocale LC_ALL "")

Note that in Guile 2.2.x, the locale will automatically be set when
running a script using the standard 'guile' executable, although
programs linked with libguile will still need to set the locale


reply via email to

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