From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: need: scm_from_{utf8,latin1}_{string,symbol,keyword} Date: Wed, 08 Sep 2010 00:05:51 +0200 Message-ID: References: <877hiy3iwn.fsf@gnu.org> <231469.37791.qm@web37905.mail.mud.yahoo.com> <87zkvtv5qc.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283896988 613 80.91.229.12 (7 Sep 2010 22:03:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2010 22:03:08 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Sep 08 00:03:06 2010 Return-path: Envelope-to: guile-devel@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 1Ot6Fn-0005nj-1o for guile-devel@m.gmane.org; Wed, 08 Sep 2010 00:03:02 +0200 Original-Received: from localhost ([127.0.0.1]:58339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot6Fh-0004F5-AC for guile-devel@m.gmane.org; Tue, 07 Sep 2010 18:02:53 -0400 Original-Received: from [140.186.70.92] (port=34147 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot6Fb-0004F0-7U for guile-devel@gnu.org; Tue, 07 Sep 2010 18:02:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot6FZ-0000NE-O4 for guile-devel@gnu.org; Tue, 07 Sep 2010 18:02:47 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:39719 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot6FZ-0000N5-Lf; Tue, 07 Sep 2010 18:02:45 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 232AAD4A06; Tue, 7 Sep 2010 18:02:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=Z/CJdmE/xXvW 6D1dAavvWbdF1wU=; b=fdl4qUV3WMWahpBXvrZumRDm74mRVBjYV8UXBAEKXpbo UQk1OKYR47rIKuoNWGqkhQl624EnCIXQBWz7/7TGYXM2lwMD1wz98i0c3Kij03B3 uytfhxy3jzF3MBEIwfiZ35QYvf9vXVsLm5/qrqYoNDyfNG3k6NrSLHgRBqK+qSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=tFXBWI KKzI+ZF4Iv5KFBiNyu+gASmW1FY2rfSy8XM/rGMZGXXQaruvd34GtMMeGQN1FgMY pMx9kly4D64b5tXhEhlC31OGkv6uPTmgzeVRGwdzvRns5LfyV3IqyxWtTuEM7FRp eO4Rk3m0XUIqh/IKpqMbNyMYWawk8I4s46wWo= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id EEAF4D4A03; Tue, 7 Sep 2010 18:02:42 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [79.156.65.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 2F4CED4A01; Tue, 7 Sep 2010 18:02:39 -0400 (EDT) In-Reply-To: <87zkvtv5qc.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 07 Sep 2010 19:11:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: A38C499C-BACB-11DF-8463-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10885 Archived-At: Hi, On Tue 07 Sep 2010 19:11, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mike Gran writes: > >> From: Ludovic Court=C3=A8s >> >>> Besides, there=E2=80=99s the undocumented =E2=80=98scm_from_stringn=E2= =80=99 and the internal >>> =E2=80=98scm_to_stringn=E2=80=99, which can convert from/to any encodin= g. I think they >>> were initially kept internal because we weren=E2=80=99t quite sure abou= t the >>> API. Mike? >> >> Also, I think we were trying to avoid compilation problems based on=20 >> having to expose the libunistring's enum iconv_ilseq_handle to the world. >> But later, we ended up creating the analogous >> scm_t_string_failed_conversion_handler type to work around that problem. > > Right. So I guess they can now be made public & documented. Would you > like to do it? :-) Perhaps named scm_{to,from}_encoded_stringn? Giving the more brief names to the more general functions sits a bit strange with me. But that could just be me :) Andy --=20 http://wingolog.org/