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: Problems with guile-sqlite3 Date: Fri, 01 Apr 2011 13:34:20 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1301658235 20190 80.91.229.12 (1 Apr 2011 11:43:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 11:43:55 +0000 (UTC) Cc: guile-devel@gnu.org To: Detlev Zundel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 01 13:43:51 2011 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 1Q5cla-0002fE-MD for guile-devel@m.gmane.org; Fri, 01 Apr 2011 13:43:50 +0200 Original-Received: from localhost ([127.0.0.1]:36286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5ccy-0000gH-2D for guile-devel@m.gmane.org; Fri, 01 Apr 2011 07:34:56 -0400 Original-Received: from [140.186.70.92] (port=34334 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5ccq-0000fr-0I for guile-devel@gnu.org; Fri, 01 Apr 2011 07:34:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cco-0002Ag-LL for guile-devel@gnu.org; Fri, 01 Apr 2011 07:34:47 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:39899 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cco-00022d-Go for guile-devel@gnu.org; Fri, 01 Apr 2011 07:34:46 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 6463021A7; Fri, 1 Apr 2011 07:36:15 -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; s=sasl; bh=vZ8QikZb5iL3sGYuqswPD5VI+Ks=; b=BBk98S OIC5fAXHgJQBVnSdD/wQPoVl/OT3bUbqq9jW1VrxDey0uRTpwYj1wTzBw7FLG0A+ fKRuS7GhTeH3pBUzIyqWh74AsosyjI9GJ2tkSkPfDBNM0MpMppjc43YaOTV49asE rI/GJfs7u5aMRd53VH89xLqaJ2AV13X+sjmv8= 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; q=dns; s=sasl; b=fhbd60Tdrqi93PYRqptGxkC+ejI741Qm 9169wrZQC9raX27LErL3zQLMUGPsPAJ68l/RgMMJfIXj01aGl+mvaWmI1oNQ+KjO 6t6R84VXQjIkkp2wxoA20C5GKwegjv488U4lyehkeLAatX6yWfWFpfL9n7SkhehT 3grSeqF12vw= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4B7E521A6; Fri, 1 Apr 2011 07:36:13 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id AA1CA21A4; Fri, 1 Apr 2011 07:36:11 -0400 (EDT) In-Reply-To: (Detlev Zundel's message of "Thu, 31 Mar 2011 18:18:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 3F6C6A52-5C54-11E0-9981-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:12136 Archived-At: On Thu 31 Mar 2011 18:18, Detlev Zundel writes: > Hi Andy, > >>> Indeed, there's no null-termination on this string. I guess we need to >>> copy into a bytevector that is longer and provide a NUL byte. Want to >>> patch that one too? > > The attached patches work for me. Thanks. Please detabify the first one. Can you resubmit the second one also using the string->pointer encoding argument that I just pushed to Guile? Thanks :-) > As a followup I'd really like to put a few statments into tests below > test/. Can anyone point me to what functions (i.e. assert,...) I should > use in such tests? Sigh, it's a good question. Guile has "(test-suite lib)" internally, which is quite nice, but not public. Externally there are many things but none as nice. I guess I would say to just add some test scripts using the normal automake mechanism, and make them (exit 1) if there is an error. You won't get a nice summary but it's better than nothing. Cheers, Andy -- http://wingolog.org/