From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: What's the alternative for SCM_STRING_CHARS ? Date: Wed, 23 Feb 2011 22:46:07 -0800 (PST) Message-ID: <335547.82804.qm@web37904.mail.mud.yahoo.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298529984 2652 80.91.229.12 (24 Feb 2011 06:46:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 06:46:24 +0000 (UTC) To: "NalaGinrut@gmail.com" , "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Feb 24 07:46:20 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 1PsUxv-0006bn-Cm for guile-user@m.gmane.org; Thu, 24 Feb 2011 07:46:19 +0100 Original-Received: from localhost ([127.0.0.1]:37007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsUxu-0002yN-RG for guile-user@m.gmane.org; Thu, 24 Feb 2011 01:46:18 -0500 Original-Received: from [140.186.70.92] (port=39966 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsUxn-0002yH-1c for guile-user@gnu.org; Thu, 24 Feb 2011 01:46:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsUxm-0003hg-5p for guile-user@gnu.org; Thu, 24 Feb 2011 01:46:10 -0500 Original-Received: from web37904.mail.mud.yahoo.com ([209.191.91.166]:27198) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PsUxl-0003hT-WE for guile-user@gnu.org; Thu, 24 Feb 2011 01:46:10 -0500 Original-Received: (qmail 83663 invoked by uid 60001); 24 Feb 2011 06:46:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298529967; bh=hqDEH7btP0QAmdOo5NswMCRBpPtCkAGknL2PmsuV5Zc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jhSXQCmfqafiVcih3sMtnxw02y3hceScfuY4zLl57LxwOIFEbZ4UZFQ6L4I5YwoYCam0DHZAIgPlLgENexRu07HsiGE+bBl4xai7YKtf6Hvpg/0kEYqErrkgpFVJecFy3gN+/n2xf0w0eUVCkr72i0DWwIRqmDWuVinOKOlA2NE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=xOF5n6+eWwiwFm/JUAB47XaHfl+9bFmTpDDXFMVvvy+L97yH03J8zM0TUle50d0fc8V3PXvPLFiKNzAkk4BKROMJ8pxHF9h2PuJ1UqCvIjdHVgg2xGbYJ+tCywKlPK6+BPcaEinubRlb7ZvhzGFx78AXFixXgUimnmncg1QAzag=; X-YMail-OSG: Cr4OTFcVM1nM2OasL8kzmg75KfcTTZcQEWUXUuEp.ZM.dQr mWUqHC0N709vL9p_DFJmAU8G8LIa6ArJDWlOICjQOHjQXfwQMtBvq4Ky5wmr i3VmLYzuUbEoJSLkuI15C4Y3WZBu_al9PILx9AxnmGS8w9HApa.l_YGdaSY_ nIcckrExzlDM0.0aRf._J27m945VyOyHBnGfLUw13f9URtIZbklOCC2RmGBE XFKizxgXYgvOqYNlXpmabNGdJNqoWgoorvuo49EY0WEKvarDS02MigjcTh0l Tje84PaiA_doQa75FGYATnnqEnyEudbkbmadjW0gF6tiSrrI6L7NLd_ppEkC 3WeZGEU1JzjGU2i.wDIja5H4owBa7lwsjY8gDQ5sYLzdp7NweA68Fzpse7.8 - Original-Received: from [71.130.216.250] by web37904.mail.mud.yahoo.com via HTTP; Wed, 23 Feb 2011 22:46:07 PST X-Mailer: YahooMailWebService/0.8.109.292656 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 209.191.91.166 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:8460 Archived-At: From: nalaginrut nalaginrut@gmail.com=0A=0A>>hi all!=0A>I found SCM_STRING_= CHARS is deprecated, but I didn't find it's=0A>alternative from NEWS. Could= anybody tell me where to find it?=0A=0AThe move to Unicode makes things a = lot more complicated, unfortunately.=0AStrings before 1.9.x were 8-bit, so = the way they were stored had to =0Abe changed.=A0 Since their storage is no= w different, it isn't a good idea=0Ato directly access the storage with mac= ros like SCM_STRING_CHARS.=0A=0AThere are the functions scm_to_locale_strin= g, scm_to_latin1_string,=0Ascm_to_stringn, and =A0scm_to_utf8_string.=A0 Bu= t, unlike SCM_STRING_CHARS,=0Athe results of these functions need to be fre= ed.=0A=0ARespect,=0A=0A-Mike