[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wide strings
From: |
Ludovic Courtès |
Subject: |
Re: Wide strings |
Date: |
Thu, 29 Jan 2009 00:49:05 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Hello,
Clinton Ebadi <address@hidden> writes:
> The `scm_{to|from}_locale_string' functions provide enough abstraction
> to make this doable without breaking anything that doesn't use
> `scm_take_locale_string' (and even then Guile can detect when the locale
> is not UCS-4, revert to `scm_from_locale_string' and `free' the taken
> string immediately after conversion). This could be enhanced with
> `scm_{to|from}_encoded_string ({char*|SCM} string, enum encoding)'
> functions.
Yes.
> Basically `make-string' would be extended with an :internal-encoding
> argument, or a new `make-string-with-internal-encoding' (with a better
> name perhaps) introduced to explicitly specify the internal encoding
> the application desires.
I think the internal encoding of strings should not be exposed to
applications, at least not at the Scheme level.
Nevertheless, one could argue that it might be useful to expose it at
the C level, precisely to allow the efficient interaction with C code,
but that would need to be done with care, so that Guile is not
over-constrained.
Thanks,
Ludo'.
- Re: Wide strings, (continued)
- Re: Wide strings, Ludovic Courtès, 2009/01/27
- Re: Wide strings, Mike Gran, 2009/01/28
- Re: Wide strings, Andy Wingo, 2009/01/28
- Re: Wide strings, Ludovic Courtès, 2009/01/28
- Re: Wide strings, Neil Jerram, 2009/01/29
- Re: Wide strings, Clinton Ebadi, 2009/01/28
- Re: Wide strings,
Ludovic Courtès <=