unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Unicode I/O
@ 2010-09-18 21:50 Ludovic Courtès
  2010-09-19 10:27 ` Andy Wingo
  2011-01-03 22:58 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Ludovic Courtès @ 2010-09-18 21:50 UTC (permalink / raw)
  To: guile-devel

Hello,

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:

  http://lists.gnu.org/archive/html/bug-libunistring/2010-09/msg00004.html

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

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-22 23:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-18 21:50 Unicode I/O Ludovic Courtès
2010-09-19 10:27 ` Andy Wingo
2010-09-19 20:41   ` Ludovic Courtès
2011-01-03 22:58 ` Ludovic Courtès
2011-01-22 23:42   ` Ludovic Courtès

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