From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile@gnu.org, bug-autogen@gnu.org,
Bruce Korb <bkorb@gnu.org>, Elias Pipping <pipping@lavabit.com>
Subject: ‘scm_from_locale_string’ and locale character encoding
Date: Sun, 17 Jul 2011 22:47:56 +0200 [thread overview]
Message-ID: <877h7gljlv.fsf_-_@gnu.org> (raw)
In-Reply-To: <87vcv5kzhk.fsf@pobox.com> (Andy Wingo's message of "Thu, 14 Jul 2011 11:01:11 +0200")
Hello!
Andy Wingo <wingo@pobox.com> skribis:
> On Wed 13 Jul 2011 17:11, Bruce Korb <bkorb@gnu.org> writes:
[...]
>> New name, please.
>
> We'll try harder in the future. But we cannot change the fact that
> scm_from_locale_string does decode its argument.
FWIW, I do understand the inconvenience and frustration reported here.
But as Andy suggests, I think it should come as no surprise that
‘scm_from_locale_string’ returns a string from a locale-encoded one.
Guile 1.8 already documented things this way [0].
As for (ab)using strings as byte sequences, it was bound to break with
the introduction of Unicode support. To transition away from that, 1.8
had SRFI-4 and related I/O support (‘uniform-vector-read!’, etc.),
though it wasn’t as convenient as R6RS bytevectors.
Thanks,
Ludo’.
[0] http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Conversion-to_002ffrom-C.html#index-scm_005ffrom_005flocale_005fstring-846
next prev parent reply other threads:[~2011-07-17 20:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20110710.001131.2114114687665811411.pipping@lavabit.com>
2011-07-11 13:28 ` [Bug-autogen] test failure with guile-2.0.2 Bruce Korb
[not found] ` <20110711.160906.808950167011716776.pipping@lavabit.com>
2011-07-11 17:32 ` Bruce Korb
[not found] ` <4E1AFA72.2050803@gnu.org>
2011-07-13 8:48 ` Andy Wingo
2011-07-13 12:54 ` Bruce Korb
[not found] ` <4E1D95A0.60504@gnu.org>
2011-07-13 13:41 ` Andy Wingo
2011-07-13 15:01 ` Thien-Thi Nguyen
2011-07-15 16:25 ` Thien-Thi Nguyen
2011-07-18 9:30 ` Andy Wingo
2011-07-13 15:11 ` Bruce Korb
[not found] ` <4E1DB59B.9070700@gnu.org>
2011-07-14 9:01 ` Andy Wingo
2011-07-17 20:47 ` Ludovic Courtès [this message]
2011-07-18 16:18 ` ‘scm_from_locale_string’ and locale character encoding Bruce Korb
[not found] ` <4E245CC5.4040505@gnu.org>
2011-07-19 9:35 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877h7gljlv.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=bkorb@gnu.org \
--cc=bug-autogen@gnu.org \
--cc=bug-guile@gnu.org \
--cc=pipping@lavabit.com \
--cc=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).