On Mon 11 Jul 2016 10:06, Alex Kost <alez...@gmail.com> 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



Reply via email to