From: Ws Hu <exprosic@gmail.com>
To: 23754@debbugs.gnu.org
Subject: bug#23754: Guile doesn't show correct character while interpreting script file
Date: Sun, 12 Jun 2016 17:17:25 +0800 [thread overview]
Message-ID: <CALy-6cG8P-9GAdmBy4UUcDA2usE59k6CXHtnM_+F3UXa07tRsw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]
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
> ?
while it works fine in REPL mode:
> $ guile <<<'(display "蛤")'
> GNU Guile 2.0.11
> Copyright (C) 1995-2014 Free Software Foundation, Inc.
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
> Enter `,help' for help.
> 蛤
and I think it's not a problem of my locale configuration:
> $ locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
because my terminal recognizes utf8 bytes:
> $ printf "\xe8\x9b\xa4"
> 蛤
where e8-9b-a4 is the utf8-encoded Chinese character "蛤"
[-- Attachment #2: Type: text/html, Size: 2213 bytes --]
next reply other threads:[~2016-06-12 9:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-12 9:17 Ws Hu [this message]
2016-07-11 8:06 ` bug#23754: Guile doesn't show correct character while interpreting script file Alex Kost
2016-07-11 16:20 ` Andy Wingo
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=CALy-6cG8P-9GAdmBy4UUcDA2usE59k6CXHtnM_+F3UXa07tRsw@mail.gmail.com \
--to=exprosic@gmail.com \
--cc=23754@debbugs.gnu.org \
/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).