GNU bug report logs - #22750
Output port encoding isn't correctly set

Previous Next

Package: guile;

Reported by: Roland Lutz <rlutz <at> hedmen.org>

Date: Sat, 20 Feb 2016 18:25:02 UTC

Severity: normal

Tags: notabug

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 22750 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Roland Lutz <rlutz <at> hedmen.org>
Cc: control <at> debbugs.gnu.org, 22750 <at> debbugs.gnu.org
Subject: Re: bug#22750: Output port encoding isn't correctly set
Date: Fri, 26 Feb 2016 13:53:46 -0500
tags 22750 + notabug
close 22750
thanks

Roland Lutz <rlutz <at> hedmen.org> 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
explicitly.

     Regards,
       Mark




This bug report was last modified 9 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.