From: Andy Wingo <wingo@pobox.com>
To: Alex Kost <alezost@gmail.com>
Cc: 23754-done@debbugs.gnu.org, Ws Hu <exprosic@gmail.com>
Subject: bug#23754: Guile doesn't show correct character while interpreting script file
Date: Mon, 11 Jul 2016 18:20:51 +0200 [thread overview]
Message-ID: <87d1mk404c.fsf@pobox.com> (raw)
In-Reply-To: <87wpksppi8.fsf@gmail.com> (Alex Kost's message of "Mon, 11 Jul 2016 11:06:55 +0300")
On Mon 11 Jul 2016 10:06, Alex Kost <alezost@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
prev parent reply other threads:[~2016-07-11 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-12 9:17 bug#23754: Guile doesn't show correct character while interpreting script file Ws Hu
2016-07-11 8:06 ` Alex Kost
2016-07-11 16:20 ` Andy Wingo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1mk404c.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=23754-done@debbugs.gnu.org \
--cc=alezost@gmail.com \
--cc=exprosic@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).