unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: nalaginrut <nalaginrut@gmail.com>
To: Mike Gran <spk121@yahoo.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: What's the alternative for SCM_STRING_CHARS ?
Date: Thu, 24 Feb 2011 14:57:58 +0800	[thread overview]
Message-ID: <1298530678.2596.11.camel@Renee-desktop> (raw)
In-Reply-To: <335547.82804.qm@web37904.mail.mud.yahoo.com>

> 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

Thanks! But it sounds like I got a lot code to change. :-)

-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut




  reply	other threads:[~2011-02-24  6:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24  6:46 What's the alternative for SCM_STRING_CHARS ? Mike Gran
2011-02-24  6:57 ` nalaginrut [this message]
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=1298530678.2596.11.camel@Renee-desktop \
    --to=nalaginrut@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=spk121@yahoo.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).