[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23754: Guile doesn't show correct character while interpreting scrip
From: |
Andy Wingo |
Subject: |
bug#23754: Guile doesn't show correct character while interpreting script file |
Date: |
Mon, 11 Jul 2016 18:20:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
On Mon 11 Jul 2016 10:06, Alex Kost <address@hidden> writes:
> Ws Hu (2016-06-12 12:17 +0300) wrote:
>
>> Hi,
>>
>> guile replaces non-ascii unicodes with question marks while
>> interpreting script file:
>>
>> $ cat test.scm
>> (display "蛤")
>> $ file test.scm
>> test.scm: UTF-8 Unicode text
>> $ guile test.scm
>> ?
>
> Hi, putting (setlocale LC_ALL "") in the beginning of "test.scm" should
> fix it.
Note that this is fixed in the 2.2 beta releases. See the discussion in
https://www.gnu.org/software/guile/manual/html_node/Environment-Variables.html#Environment-Variables
(part of the 2.0 manual) for more on GUILE_INSTALL_LOCALE.
Unfortunately there is still a bug in GUILE_INSTALL_LOCALE=1 in most
versions of Guile 2.0 where Guile will install the locale, but not use
its charset for the default encoding :( Fixed in 2.2 beta releases, and
will be fixed in 2.0.12.
Andy