|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#23754: closed (Guile doesn't show correct character while interpreting script file) |
Date: | Mon, 11 Jul 2016 16:21:01 +0000 |
Your message dated Mon, 11 Jul 2016 18:20:51 +0200 with message-id <address@hidden> and subject line Re: bug#23754: Guile doesn't show correct character while interpreting script file has caused the debbugs.gnu.org bug report #23754, regarding Guile doesn't show correct character while interpreting script file to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 23754: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23754 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Guile doesn't show correct character while interpreting script file Date: Sun, 12 Jun 2016 17:17:25 +0800 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 "蛤"
--- End Message ---
--- Begin Message ---Subject: Re: 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
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |