[Top][All Lists]

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

Unicode I/O

From: Ludovic Courtès
Subject: Unicode I/O
Date: Sat, 18 Sep 2010 23:50:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)


Guile currently uses libunistring’s ‘u32_conv_from_encoding’ when
reading text from an input port whose encoding isn’t Latin-1 (similarly
when writing to output ports.)

An issue with that is that escaping non-representable characters is
handled by libunistring, with a syntax different from the one we’d like
(Guile or R6RS string escapes.)  So
‘scm_i_unistring_escapes_to_{guile,r6rs}_escapes’ kludgely attempt to
substitute the right escapes.

The problems with this approach are discussed in the thread at:

The conclusion is that we’d better use raw ‘iconv’ calls in such


reply via email to

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