From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_to_locale_stringbuf Date: Sun, 08 Feb 2009 21:41:08 +0000 Message-ID: <87fxiohaiz.fsf@arudy.ossau.uklinux.net> References: <493834.3827.qm@web37902.mail.mud.yahoo.com> <874ozbjfwt.fsf@arudy.ossau.uklinux.net> <360535.25627.qm@web37903.mail.mud.yahoo.com> <87iqnrhwy5.fsf@arudy.ossau.uklinux.net> <87tz78ikq5.fsf@gnu.org> 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: ger.gmane.org 1234129293 4909 80.91.229.12 (8 Feb 2009 21:41:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2009 21:41:33 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Feb 08 22:42:48 2009 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.50) id 1LWHQN-00009V-VW for guile-devel@m.gmane.org; Sun, 08 Feb 2009 22:42:48 +0100 Original-Received: from localhost ([127.0.0.1]:52644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWHP4-0007QS-Ix for guile-devel@m.gmane.org; Sun, 08 Feb 2009 16:41:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWHOy-0007QE-My for guile-devel@gnu.org; Sun, 08 Feb 2009 16:41:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWHOw-0007Q1-AB for guile-devel@gnu.org; Sun, 08 Feb 2009 16:41:19 -0500 Original-Received: from [199.232.76.173] (port=55014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWHOw-0007Py-5t for guile-devel@gnu.org; Sun, 08 Feb 2009 16:41:18 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:55396) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWHOu-0002yl-FW; Sun, 08 Feb 2009 16:41:16 -0500 Original-Received: from arudy (host86-157-180-39.range86-157.btcentralplus.com [86.157.180.39]) by mail3.uklinux.net (Postfix) with ESMTP id BE5931F71F1; Sun, 8 Feb 2009 21:41:15 +0000 (GMT) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id A217C38013; Sun, 8 Feb 2009 21:41:08 +0000 (GMT) In-Reply-To: <87tz78ikq5.fsf@gnu.org> ("Ludovic =?iso-8859-1?Q?Court=E8s?= =?iso-8859-1?Q?=22's?= message of "Thu\, 05 Feb 2009 23\:26\:26 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:8143 Archived-At: ludo@gnu.org (Ludovic Court=E8s) writes: > I would say returning both "number of bytes needed for the full string" > (as is the case) plus "number of bytes actually written" (which may be > smaller than MAX_LEN in the case of multi-byte encoding). This would be > an addition to the API, IMO, while `scm_to_locale_stringbuf ()' would > keep behaving as described, with the limitations you outline above. That sounds good to me. Neil