From: Linas Vepstas <linasvepstas@gmail.com>
To: Guile Development <guile-devel@gnu.org>, bug-guile@gnu.org
Subject: UTF-8 regression in guile 1.9.5
Date: Sun, 6 Dec 2009 12:43:03 -0600 [thread overview]
Message-ID: <3ae3aa420912061043y12a33f27ia3d2c298812ee358@mail.gmail.com> (raw)
Hi,
I seem to see either a regression in guile-1.9.5 with regard
to UTF-8 strings, or at least some sort of incompatible change.
In guile-1.8.6, I am able to do the following:
SCM new_node (SCM sname)
{
char * cname = scm_to_locale_string(sname);
printf ("The name is %s\n", cname);
free (cname);
return SCM_EOL;
}
scm_c_define_gsubr("new-node", 1, 0, 0, ss_name);
Then, from the guile prompt, I can evaluate the following:
(new-node "てみました。")
and get the output "The name is てみました。"
However, in guile-1.9.5, the above gives me:
"The name is ã¦ã¿ã¾ããã"
Now, it is very possible that I've forgotten to say
(use-modules some-new-utf8-module)
but I am unclear on what that module is (and why its not
specified by default).
In both cases, my shell has: LANG=en_US.UTF-8
--linas
next reply other threads:[~2009-12-06 18:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 18:43 Linas Vepstas [this message]
2009-12-06 19:16 ` UTF-8 regression in guile 1.9.5 Mike Gran
2009-12-06 19:33 ` Linas Vepstas
2009-12-06 20:40 ` Mike Gran
2009-12-06 20:43 ` Linas Vepstas
2009-12-11 10:29 ` Andy Wingo
2009-12-11 15:05 ` Mike Gran
2009-12-11 15:40 ` Linas Vepstas
2009-12-11 22:50 ` Ludovic Courtès
2010-01-09 18:07 ` Andy Wingo
2010-01-10 22:00 ` Mike Gran
2010-01-11 13:38 ` Ludovic Courtès
2010-01-11 21:18 ` Andy Wingo
2010-01-12 11:25 ` Ludovic Courtès
2010-01-12 19:36 ` Andy Wingo
2010-01-12 22:26 ` Ludovic Courtès
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=3ae3aa420912061043y12a33f27ia3d2c298812ee358@mail.gmail.com \
--to=linasvepstas@gmail.com \
--cc=bug-guile@gnu.org \
--cc=guile-devel@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).