bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23754: Guile doesn't show correct character while interpreting scrip


From: Ws Hu
Subject: bug#23754: 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 "蛤"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]