From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: regexp funcs versus '\0' Date: Sun, 22 Aug 2004 11:38:26 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87k6vs2bql.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093138731 31144 80.91.224.253 (22 Aug 2004 01:38:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Aug 2004 01:38:51 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Aug 22 03:38:46 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ByhJl-0006QM-00 for ; Sun, 22 Aug 2004 03:38:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ByhO9-0006gS-Ki for guile-devel@m.gmane.org; Sat, 21 Aug 2004 21:43:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ByhO5-0006g5-SR for guile-devel@gnu.org; Sat, 21 Aug 2004 21:43:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ByhO4-0006fY-UT for guile-devel@gnu.org; Sat, 21 Aug 2004 21:43:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ByhO4-0006fU-LH for guile-devel@gnu.org; Sat, 21 Aug 2004 21:43:12 -0400 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ByhJf-0007xK-9L for guile-devel@gnu.org; Sat, 21 Aug 2004 21:38:39 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7M1ccje013310 for ; Sun, 22 Aug 2004 11:38:38 +1000 Original-Received: from localhost (ppp202F.dyn.pacific.net.au [61.8.32.47]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i7M1calY020639 for ; Sun, 22 Aug 2004 11:38:37 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1ByhJT-0001IV-00; Sun, 22 Aug 2004 11:38:27 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (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: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4004 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4004 When calling a C function that expects a '\0' terminated string, I wonder if the guile string should be checked and an error thrown if there's a \0 (apart from the terminator). That'd ensure the input doesn't get silently "truncated". I noticed this in the regexp matching functions, where I was trying each possible character as a test, and #\nul didn't work. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel