From: Mike Gran <spk121@yahoo.com>
To: "NalaGinrut@gmail.com" <NalaGinrut@gmail.com>,
"guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: What's the alternative for SCM_STRING_CHARS ?
Date: Wed, 23 Feb 2011 22:46:07 -0800 (PST) [thread overview]
Message-ID: <335547.82804.qm@web37904.mail.mud.yahoo.com> (raw)
From: nalaginrut nalaginrut@gmail.com
>>hi all!
>I found SCM_STRING_CHARS is deprecated, but I didn't find it's
>alternative from NEWS. Could anybody tell me where to find it?
The move to Unicode makes things a lot more complicated, unfortunately.
Strings before 1.9.x were 8-bit, so the way they were stored had to
be changed. Since their storage is now different, it isn't a good idea
to directly access the storage with macros like SCM_STRING_CHARS.
There are the functions scm_to_locale_string, scm_to_latin1_string,
scm_to_stringn, and scm_to_utf8_string. But, unlike SCM_STRING_CHARS,
the results of these functions need to be freed.
Respect,
-Mike
next reply other threads:[~2011-02-24 6:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 6:46 Mike Gran [this message]
2011-02-24 6:57 ` What's the alternative for SCM_STRING_CHARS ? nalaginrut
2011-02-24 10:50 ` Ludovic Courtès
-- strict thread matches above, loose matches on Subject: below --
2011-02-24 5:17 nalaginrut
2011-02-24 9:12 ` Andy Wingo
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=335547.82804.qm@web37904.mail.mud.yahoo.com \
--to=spk121@yahoo.com \
--cc=NalaGinrut@gmail.com \
--cc=guile-user@gnu.org \
/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).