From: Mike Gran <spk121@yahoo.com>
To: linasvepstas@gmail.com
Cc: bug-guile@gnu.org, Guile Development <guile-devel@gnu.org>
Subject: Re: UTF-8 regression in guile 1.9.5
Date: Sun, 6 Dec 2009 12:40:29 -0800 (PST) [thread overview]
Message-ID: <600066.28581.qm@web37908.mail.mud.yahoo.com> (raw)
In-Reply-To: <3ae3aa420912061133r3d2fb5b4w2b3ea31f3d05e701@mail.gmail.com>
> > Hmm. The "ã" is a dead giveaway that you are printing a UTF-8 string
> > that is being interpreted as a ISO-8859-1 string.
> >
> > You've already said that you're in a UTF-8 locale. It could be that you
> > need to call (setlocale LC_ALL "")
>
> That cured it.
>
> > as well as having a setlocale call in your program.
>
> Doesn't seem to be required, after the above.
>
> Thanks!
>
> Why this happened is strange; I'm now investigating. Sorry to
> have bothered you with something that is dohh .. basic.
1.9.x does work fundamentally differently w.r.t. strings.
The reason for that is because of how strings are now stored.
In 1.8.x, a character was a byte. In 1.9.x a character is a
codepoint.
But for Guile to store characters as codepoints, declaring a locale
pretty much a requirement now.
-Mike
next prev parent reply other threads:[~2009-12-06 20:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 18:43 UTF-8 regression in guile 1.9.5 Linas Vepstas
2009-12-06 19:16 ` Mike Gran
2009-12-06 19:33 ` Linas Vepstas
2009-12-06 20:40 ` Mike Gran [this message]
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=600066.28581.qm@web37908.mail.mud.yahoo.com \
--to=spk121@yahoo.com \
--cc=bug-guile@gnu.org \
--cc=guile-devel@gnu.org \
--cc=linasvepstas@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).