unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* A question about scm_{to,from}_locale_string()
@ 2011-06-11 10:13 Peter TB Brett
  2011-06-11 14:19 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Peter TB Brett @ 2011-06-11 10:13 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

Hi folks,

gEDA currently uses scm_to_locale_string() and scm_from_locale_string()
to convert C char* strings to and from SCM strings.

All of our strings are encoded as UTF-8, but we can't use
scm_to_utf8_stringn() and scm_from_utf8_string() because they don't
exist in Guile 1.8.8 (which we're going to have to continue to support
for some time).

The question, then, is whether using scm_{to,from}_locale_string() with
UTF-8 strings will "just work" in both Guile 1.8.8 and Guile 2.0.1 as
long as we make sure that the current locale is a UTF-8 locale?

Thanks in advance,

                           Peter

-- 
Peter Brett <peter@peter-b.co.uk>
Remote Sensing Research Group
Surrey Space Centre

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2011-06-12 16:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-11 10:13 A question about scm_{to,from}_locale_string() Peter TB Brett
2011-06-11 14:19 ` Ludovic Courtès
2011-06-12  7:09   ` Peter TB Brett
2011-06-12  9:28     ` Thien-Thi Nguyen
2011-06-12  9:46       ` Peter TB Brett
2011-06-12 16:24         ` Thien-Thi Nguyen

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