From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: Exposing `scm_i_mem2number ()' Date: Wed, 15 Feb 2006 23:57:12 +0200 Message-ID: <874q30z3nr.fsf@zagadka.de> References: <87d5holin9.fsf@laas.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1140048515 16002 80.91.229.2 (16 Feb 2006 00:08:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2006 00:08:35 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Feb 16 01:08:33 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9Wh7-0008Uf-BO for guile-devel@m.gmane.org; Thu, 16 Feb 2006 01:08:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9WZd-0001wL-47 for guile-devel@m.gmane.org; Wed, 15 Feb 2006 19:00:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F9UeR-0000PC-Ew for guile-devel@gnu.org; Wed, 15 Feb 2006 16:57:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F9UeO-0000Ln-9a for guile-devel@gnu.org; Wed, 15 Feb 2006 16:57:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9UeM-0000Jw-Mr for guile-devel@gnu.org; Wed, 15 Feb 2006 16:57:27 -0500 Original-Received: from [213.243.153.36] (helo=smtp3.pp.htv.fi) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F9UjL-0001dK-Ol for guile-devel@gnu.org; Wed, 15 Feb 2006 17:02:35 -0500 Original-Received: from zagadka.ping.de (cs181072157.pp.htv.fi [82.181.72.157]) by smtp3.pp.htv.fi (Postfix) with SMTP id 0807A27ACAD for ; Wed, 15 Feb 2006 23:57:24 +0200 (EET) Original-Received: (qmail 25621 invoked by uid 1000); 15 Feb 2006 23:57:13 +0200 Original-To: guile-devel@gnu.org In-Reply-To: <87d5holin9.fsf@laas.fr> (Ludovic =?iso-8859-1?Q?Court=E8s's?= message of "Wed, 15 Feb 2006 16:57:14 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:5718 Archived-At: ludovic.courtes@laas.fr (Ludovic Court=E8s) writes: > I think it'd be nice to export `scm_i_mem2number ()'. My initial plan > was to just rename it `scm_c_string_to_number ()' and document it. > > However, due to the eventual support for various encodings, we'd rather > need to have something like `scm_c_locale_string_to_number ()'. The > problem is: how do we handle the LEN argument for arbitrary encodings? > Should it be documented as the number of chars (not octets) that compos= e > the string? I'd make it the number of octets, to remain in sync with scm_from_locale_stringn, etc. > Suggestions? But, what about scm_string_to_number (scm_from_locale_string (...))? Isn't that good enough? --=20 GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel