From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nalaginrut Newsgroups: gmane.lisp.guile.user Subject: Re: What's the alternative for SCM_STRING_CHARS ? Date: Thu, 24 Feb 2011 14:57:58 +0800 Organization: HFG Message-ID: <1298530678.2596.11.camel@Renee-desktop> References: <335547.82804.qm@web37904.mail.mud.yahoo.com> Reply-To: NalaGinrut@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298530696 5331 80.91.229.12 (24 Feb 2011 06:58:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 06:58:16 +0000 (UTC) Cc: "guile-user@gnu.org" To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Feb 24 07:58:12 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PsV9Q-0002kD-3m for guile-user@m.gmane.org; Thu, 24 Feb 2011 07:58:12 +0100 Original-Received: from localhost ([127.0.0.1]:54000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsV9P-0006z6-Ca for guile-user@m.gmane.org; Thu, 24 Feb 2011 01:58:11 -0500 Original-Received: from [140.186.70.92] (port=52239 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsV9K-0006xI-Po for guile-user@gnu.org; Thu, 24 Feb 2011 01:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsV9J-0005u1-QW for guile-user@gnu.org; Thu, 24 Feb 2011 01:58:06 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:49610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsV9J-0005tw-Mp for guile-user@gnu.org; Thu, 24 Feb 2011 01:58:05 -0500 Original-Received: by yxt33 with SMTP id 33so175412yxt.0 for ; Wed, 23 Feb 2011 22:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:reply-to:to:cc:in-reply-to :references:content-type:organization:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=fNfohTfnuzKV4xEG+Ja65N+lP0NbVNFi3UIOzVLe2SY=; b=ppAmizB6ORZrROtUxoYWCuv5LvCBt3VV2kziKspJU7sJAh9rlKqpEjvzjy75V77xnT /47I9S3bgwqCVSiCugI83fmSF7zav0C/TSJBMoYTjhnva3vNK8B4Pg1zZw5Y4XmAyR8r MP2RdPYiQJa/93xMsVgVOWUAfELjQRq60lq9A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=OWMS9bNHtOUv3c1toA4Z76pLgEK+6voyHWpSocWHOnpCMBqd1NVuxam+e6pnKYF6EU p9FtmOpxz6+IjSX3cSF4sO3chZgcsTiVNQ0+5rEi+KYWROTFSERJoFvYACp6sVcQs2n6 3vKEKsi8d7Vs9lvP8CRo/nLnbpnl3dj4hZxKQ= Original-Received: by 10.150.229.13 with SMTP id b13mr1396501ybh.180.1298530684971; Wed, 23 Feb 2011 22:58:04 -0800 (PST) Original-Received: from [192.168.100.100] ([183.15.174.30]) by mx.google.com with ESMTPS id d3sm3760380ybi.5.2011.02.23.22.58.00 (version=SSLv3 cipher=OTHER); Wed, 23 Feb 2011 22:58:03 -0800 (PST) In-Reply-To: <335547.82804.qm@web37904.mail.mud.yahoo.com> X-Mailer: Evolution 2.28.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.169 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8461 Archived-At: > 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