[Top][All Lists]

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

Re: UTF-8 regression in guile 1.9.5

From: Mike Gran
Subject: Re: UTF-8 regression in guile 1.9.5
Date: Sun, 6 Dec 2009 12:40:29 -0800 (PST)

> > 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 

But for Guile to store characters as codepoints, declaring a locale
pretty much a requirement now.


reply via email to

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