guile-user
[Top][All Lists]
Advanced

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

Re: Problem with wide characters on upgrading to guile 2.x


From: Ludovic Courtès
Subject: Re: Problem with wide characters on upgrading to guile 2.x
Date: Fri, 23 Aug 2013 14:10:31 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Hello,

Richard Shann <address@hidden> skribis:

> GNU/Denemo has a number of guile scripts in which wide characters are
> embedded in strings. These used to work in guile 1.8 but with guile 2.0
> I am seeing the following error message trying to use a string with "
> "
> in it (if that string will get through the email software)
>
> (format #t "~%=> ~A~%""  ")
> ; the throw arguments are
>
> (scm_to_stringn cannot convert wide string to output locale 84 #f #f)
>
> what is "locale 84" and how can I return to the desired behavior?

You already got advice, but anyway: what this means is that the string
cannot be converted to the current locale.

In Guile 1.8, strings were just byte sequences, like in C.  In 2.0,
strings are sequences of Unicode codepoints, which means that they must
be encoded when written to an output port.

HTH,
Ludo’.

PS: Nitpicking: I guess it should be “GNU Denemo” (as in “the Denemo
    package of GNU”), rather than “GNU/Denemo” (“GNU over the Denemo
    kernel”?)  :-)




reply via email to

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