From unknown Fri Sep 19 18:50:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26013 <26013@debbugs.gnu.org> To: bug#26013 <26013@debbugs.gnu.org> Subject: Status: (srfi srfi-37) chokes on empty string parameter Reply-To: bug#26013 <26013@debbugs.gnu.org> Date: Sat, 20 Sep 2025 01:50:45 +0000 retitle 26013 (srfi srfi-37) chokes on empty string parameter reassign 26013 guile submitter 26013 Thomas Danckaert severity 26013 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 10:35:31 2017 Received: (at submit) by debbugs.gnu.org; 7 Mar 2017 15:35:31 +0000 Received: from localhost ([127.0.0.1]:44741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clH99-0003wH-8t for submit@debbugs.gnu.org; Tue, 07 Mar 2017 10:35:31 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clH98-0003w5-2F for submit@debbugs.gnu.org; Tue, 07 Mar 2017 10:35:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clH91-0000K3-PS for submit@debbugs.gnu.org; Tue, 07 Mar 2017 10:35:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clH91-0000Jd-Lw for submit@debbugs.gnu.org; Tue, 07 Mar 2017 10:35:23 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clH8x-0007RL-Eq for bug-guile@gnu.org; Tue, 07 Mar 2017 10:35:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clH8p-0000EY-AQ for bug-guile@gnu.org; Tue, 07 Mar 2017 10:35:19 -0500 Received: from s02.spamexperts.axc.nl ([185.182.56.112]:41268) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clH8p-000098-3A for bug-guile@gnu.org; Tue, 07 Mar 2017 10:35:11 -0500 Received: from vserver42.axc.nl ([185.182.56.92]) by s02.spamexperts.axc.nl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1clH8j-0003Jt-Dc for bug-guile@gnu.org; Tue, 07 Mar 2017 16:35:06 +0100 Received: from mail.axc.nl ([159.253.0.157]:49582) by vserver42.axc.nl with esmtp (Exim 4.88) (envelope-from ) id 1clH8a-0005JM-WB for bug-guile@gnu.org; Tue, 07 Mar 2017 16:35:03 +0100 Date: Tue, 07 Mar 2017 16:34:54 +0100 (CET) Message-Id: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> To: bug-guile@gnu.org Subject: (srfi srfi-37) chokes on empty string parameter From: Thomas Danckaert X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit PrimaryMX: Accepted email from trusted host. Hint: This skips spam scanning so make sure other host is not vulnerable X-Relay-Host: 159.253.0.157 SpamTally: Final spam score: 0 X-Originating-IP: 185.182.56.92 X-SpamExperts-Domain: vserver42.axc.nl X-SpamExperts-Username: 185.182.56.92 Authentication-Results: spamexperts.axc.nl; auth=pass smtp.auth=185.182.56.92@vserver42.axc.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global_tokens (0.001371765698) X-Recommended-Action: accept X-Filter-ID: s0sct1PQhAABKnZB5plbIaExX4b9HB97Y0LqBeziPXa8B5kabb+8+DRlCqSxA333/bPom7IVowNb jNmNSGjlJADpxEq2QWue0NVTi1XPmXej1KRrf1Y8eevl1lZRQAkHO76XSTAwtV4mg4i2ouCDa4AU hvIWAV5xUW/+gAh4vXqLd0QMlRuNWVBrelbyMBGQRcOb18WfxGyg6Om6u4YYm8zdn/kE9y7JMIon RFR5lN4vPRYKza70yK2TxRJHcdD+oEAP/to+02F3J4r01qcN199fxN2oReTDHAyOynaY0Cldue3r +qEeQYBWND7fDPGoUqYOv6lKxxeboK+YPP3g5J9Wyy39ARVu6lpph/EphEmSUaqSECP9/MJNMfS9 WPFvtKiR9oEdyOK7GnLP3Jw7nAFKpw6uarMIchUUKBPMSwpSBPSbJ1fsYyh27wJVoe5hQ+CW+UYD fWNcm6W9yD2WU4bxR0PuC4wwYQTc8Sg/23VtqGjgyi5JHolhrWpNa9YQsl4SUWp4U8fCCSBjefGq te4ROxlmGgdR7QBaGWEQFYs+dvusjRV96oP1cmFb05OHyZAZLfpWinSu+danhtKvH9pAsaSpuQPS cbIWdeXhkZC4rAXOgWX2FBHgH187+EKv5hICVo92zvI9isesxBu4AK5YVcPPq3MXlUe9sP5+k0dp Y7f6EqR6zsgzOR3cDnOAnqtumL9mr3wNHogzKbCkfTUgFqxeMEjXrOQ/cgLXcbk6qQzLuCe/hQ3A 5i3Uw+OAbBH+DkNPnrywBHhKB8rPDERYzUG4pIA+ZNWHiVFtbbSZIg4JZyZE4oLFw/56kWZ/BMrY wNLPWbX1z+Q3mTGjRqFyALDqRd3gmFMTLCywSfWKe72V7y3QDXL8JTpxprEN X-Report-Abuse-To: spam@s01.spamexperts.axc.nl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hello Guilers, It looks like Guile's srfi-37 implementation doesn't process empty string arguments correctly. For example, here's a stacktrace I get when executing guix system list-generations "": $ guix system list-generations "" Backtrace: In ice-9/boot-9.scm: 160: 15 [catch #t # ...] In unknown file: ?: 14 [apply-smob/1 #] In ice-9/boot-9.scm: 66: 13 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 12 [eval # #] In ice-9/boot-9.scm: 2404: 11 [save-module-excursion #] 4056: 10 [#] 1727: 9 [%start-stack load-stack ...] 1732: 8 [#] In unknown file: ?: 7 [primitive-load "/gnu/store/hnbqdmfh1bwma8nmpai6ci76h5j6bl7j-guix-0.12.0-4.d9da/bin/.guix-real"] In guix/ui.scm: 1228: 6 [run-guix-command system "list-generations" ""] In ice-9/boot-9.scm: 160: 5 [catch srfi-34 # ...] 160: 4 [catch system-error ...] In guix/scripts/system.scm: 947: 3 [#] In ice-9/boot-9.scm: 160: 2 [catch misc-error # ...] In srfi/srfi-37.scm: 220: 1 [next-arg] In unknown file: ?: 0 [string-ref "" 0] ERROR: In procedure string-ref: ERROR: Value out of range: 0 cheers, Thomas From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 19 11:13:36 2017 Received: (at 26013) by debbugs.gnu.org; 19 Apr 2017 15:13:36 +0000 Received: from localhost ([127.0.0.1]:57057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0rIW-0002mt-BK for submit@debbugs.gnu.org; Wed, 19 Apr 2017 11:13:36 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:50253 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0rIU-0002ml-Qe for 26013@debbugs.gnu.org; Wed, 19 Apr 2017 11:13:35 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 47BBC83502; Wed, 19 Apr 2017 11:13:33 -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=L7ZvnWnIOFu7JvovLzUaZgEiMBs=; b=pKlW4s BU+reuX//rwSJs6trTFEtFLoXa+iBHWrqupSfnoPL/QuZ0YWV7y/y/SWdMPe4cBN 01W3sPp9X9YLtnpsFeMet2ncs62kpkdFcHn9LbQ1v7rVug8zyAy3M3gMlZzTY1MD fJ4F6Kmfo9yaFMwrdMuxjdh133/cusOBnRqLQ= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 275D283501; Wed, 19 Apr 2017 11:13:33 -0400 (EDT) Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 4654883500; Wed, 19 Apr 2017 11:13:32 -0400 (EDT) From: Andy Wingo To: Thomas Danckaert Subject: Re: bug#26013: (srfi srfi-37) chokes on empty string parameter References: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> Date: Wed, 19 Apr 2017 17:13:25 +0200 In-Reply-To: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> (Thomas Danckaert's message of "Tue, 07 Mar 2017 16:34:54 +0100 (CET)") Message-ID: <87inm0l9be.fsf@igalia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: C04EDF5A-2512-11E7-9B03-571C92A0D1B0-02397024!pb-sasl2.pobox.com X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 26013 Cc: ludo@gnu.org, 26013@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) On Tue 07 Mar 2017 16:34, Thomas Danckaert writes: > It looks like Guile's srfi-37 implementation doesn't process empty > string arguments correctly. For example, here's a stacktrace I get when > executing guix system list-generations "": > > $ guix system list-generations "" > Backtrace: > In ice-9/boot-9.scm: > 160: 15 [catch #t # ...] > In unknown file: > ?: 14 [apply-smob/1 #] > In ice-9/boot-9.scm: > 66: 13 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 12 [eval # #] > In ice-9/boot-9.scm: > 2404: 11 [save-module-excursion # ice-9/boot-9.scm:4051:3 ()>] > 4056: 10 [#] > 1727: 9 [%start-stack load-stack ...] > 1732: 8 [#] > In unknown file: > ?: 7 [primitive-load > "/gnu/store/hnbqdmfh1bwma8nmpai6ci76h5j6bl7j-guix-0.12.0-4.d9da/bin/.guix-real"] > In guix/ui.scm: > 1228: 6 [run-guix-command system "list-generations" ""] > In ice-9/boot-9.scm: > 160: 5 [catch srfi-34 # ...] > 160: 4 [catch system-error ...] > In guix/scripts/system.scm: > 947: 3 [#] > In ice-9/boot-9.scm: > 160: 2 [catch misc-error # ()> ...] > In srfi/srfi-37.scm: > 220: 1 [next-arg] > In unknown file: > ?: 0 [string-ref "" 0] > > ERROR: In procedure string-ref: > ERROR: Value out of range: 0 Sounds like the right diagnosis to me. Want to submit a patch? :) Andy From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 19 12:32:49 2017 Received: (at 26013) by debbugs.gnu.org; 19 Apr 2017 16:32:49 +0000 Received: from localhost ([127.0.0.1]:57205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0sXB-0004vi-JG for submit@debbugs.gnu.org; Wed, 19 Apr 2017 12:32:49 -0400 Received: from s02.spamexperts.axc.nl ([185.182.56.112]:32986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0sXA-0004vT-85 for 26013@debbugs.gnu.org; Wed, 19 Apr 2017 12:32:48 -0400 Received: from vserver42.axc.nl ([185.182.56.92]) by s02.spamexperts.axc.nl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1d0sX1-0001pl-OU; Wed, 19 Apr 2017 18:32:40 +0200 Received: from mail.axc.nl ([185.182.56.42]:36396 helo=mail.axc.eu) by vserver42.axc.nl with esmtp (Exim 4.89) (envelope-from ) id 1d0sWx-00040y-Pg; Wed, 19 Apr 2017 18:32:37 +0200 Date: Wed, 19 Apr 2017 18:32:29 +0200 (CEST) Message-Id: <20170419.183229.1069589305335594566.post@thomasdanckaert.be> To: wingo@igalia.com Subject: Re: bug#26013: (srfi srfi-37) chokes on empty string parameter From: Thomas Danckaert In-Reply-To: <87inm0l9be.fsf@igalia.com> References: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> <87inm0l9be.fsf@igalia.com> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Apr_19_18_32_29_2017_093)--" Content-Transfer-Encoding: 7bit PrimaryMX: Accepted email from trusted host. Hint: This skips spam scanning so make sure other host is not vulnerable X-Relay-Host: 185.182.56.42 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "vserver42.axc.nl", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Andy Wingo Subject: Re: bug#26013: (srfi srfi-37) chokes on empty string parameter Date: Wed, 19 Apr 2017 17:13:25 +0200 > On Tue 07 Mar 2017 16:34, Thomas Danckaert > writes: > >> It looks like Guile's srfi-37 implementation doesn't process empty >> string arguments correctly. >> [...] >> In srfi/srfi-37.scm: >> 220: 1 [next-arg] >> In unknown file: >> ?: 0 [string-ref "" 0] >> >> ERROR: In procedure string-ref: >> ERROR: Value out of range: 0 > > Sounds like the right diagnosis to me. Want to submit a patch? :) [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- SpamTally: Final spam score: 0 X-Originating-IP: 185.182.56.92 X-SpamExperts-Domain: vserver42.axc.nl X-SpamExperts-Username: 185.182.56.92 Authentication-Results: spamexperts.axc.nl; auth=pass smtp.auth=185.182.56.92@vserver42.axc.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.05) X-Recommended-Action: accept X-Filter-ID: s0sct1PQhAABKnZB5plbIaExX4b9HB97Y0LqBeziPXa8B5kabb+8+DRlCqSxA333/bPom7IVowNb jNmNSGjlJADpxEq2QWue0NVTi1XPmXej1KRrf1Y8eevl1lZRQAkHO76XSTAwtV4mg4i2ouCDa4AU hvIWAV5xUW/+gAh4vXolO0yEJhSZr7NTh2PPHFU5RcOb18WfxGyg6Om6u4YYm2gKQW7jUi3hSDpe tlwbTsUvPRYKza70yK2TxRJHcdD+oEAP/to+02F3J4r01qcN199fxN2oReTDHAyOynaY0Cldue3r +qEeQYBWND7fDPGoUqYOv6lKxxeboK+YPP3g5J9Wyy39ARVu6lpph/EphEmSUaqSECP9/MJNMfS9 WPFvtKiR9oEdyOK7GnLP3Jw7nAFKpw6uarMIchUUKBPMSwqDyKMRQpLIgOCu6l+WvUOcQWML+Gfm 48knF3HyGP2khIbxR0PuC4wwYQTc8Sg/23VtqGjgyi5JHolhrWpNa9YQsl4SUWp4U8fCCSBjefGq te4ROxlmGgdR7QBaGWEQFYs+dvusjRV96oP1cmFb05OHyZAZLfpWinSu+danhtKvH9pAsaSpuQPS cbIWdeXhkZC4rAXOgWX2FBHgH187+EKv5hICVo92zvI9isesxBu4AK5YVcPPq3MXlUe9sP5+k0dp Y7f6EqR6zsgzOR3cDnOA00EAPbS4bNU8BUEaZ6GjPkeit7rjyZ8A02yt7AyZnjM6qQzLuCe/hQ3A 5i3Uw+OAbBH+DkNPnrywBHhKB8rPDBfx1bbfhyaO3VHMr4+RLj/ejVZe2CIQ4NKRrAu+ot9y06Je XLHNSvzSa4NcSCqr9miaum+Z7LbrUNPDhKSVB7zmlELaGw4cNgkyyBWZ8PIOGcpJbZGQaqnxnrgM XbncDw== X-Report-Abuse-To: spam@s01.spamexperts.axc.nl X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 26013 Cc: ludo@gnu.org, 26013@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) ----Next_Part(Wed_Apr_19_18_32_29_2017_093)-- Content-Type: Text/Plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit From: Andy Wingo Subject: Re: bug#26013: (srfi srfi-37) chokes on empty string parameter Date: Wed, 19 Apr 2017 17:13:25 +0200 > On Tue 07 Mar 2017 16:34, Thomas Danckaert > writes: > >> It looks like Guile's srfi-37 implementation doesn't process empty >> string arguments correctly. >> [...] >> In srfi/srfi-37.scm: >> 220: 1 [next-arg] >> In unknown file: >> ?: 0 [string-ref "" 0] >> >> ERROR: In procedure string-ref: >> ERROR: Value out of range: 0 > > Sounds like the right diagnosis to me. Want to submit a patch? :) Well, let me try :) I don't fully understand the code in srfi-37.scm, but I think the fix can be as simple as the attached patch (i.e. first check if the argument is empty, otherwise check if it starts with \#-). I have tried to follow the existing indentation convention, as far as I understand it (a mix of tabs and spaces). Thomas ----Next_Part(Wed_Apr_19_18_32_29_2017_093)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0001-SRFI-37-Account-for-zero-length-arguments.patch" >From bd0bd95e3786211effe728bae61ef5b02f6cc5f6 Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Wed, 19 Apr 2017 18:14:38 +0200 Subject: [PATCH] SRFI-37: Account for zero-length arguments. * module/srfi/srfi-37.scm (args-fold): When checking if an argument is an option (starts with #\-), first check if the length is non-zero. --- module/srfi/srfi-37.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/srfi/srfi-37.scm b/module/srfi/srfi-37.scm index 3f654af2c..c34b0d083 100644 --- a/module/srfi/srfi-37.scm +++ b/module/srfi/srfi-37.scm @@ -217,7 +217,8 @@ program-arguments in ARGS, as decided by the OPTIONS' (if (null? args) (apply values seeds) (let ((arg (car args))) - (cond ((or (not (char=? #\- (string-ref arg 0))) + (cond ((or (string-null? arg) + (not (char=? #\- (string-ref arg 0))) (= 1 (string-length arg))) ;"-" (mutate-seeds! operand-proc arg) (set! args (cdr args))) -- 2.12.2 ----Next_Part(Wed_Apr_19_18_32_29_2017_093)---- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 20 04:59:59 2017 Received: (at 26013-done) by debbugs.gnu.org; 20 Apr 2017 09:00:00 +0000 Received: from localhost ([127.0.0.1]:57917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d17wV-0002KY-OA for submit@debbugs.gnu.org; Thu, 20 Apr 2017 04:59:59 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:61030 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d17wS-0002KP-QD for 26013-done@debbugs.gnu.org; Thu, 20 Apr 2017 04:59:57 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 7CA926356B; Thu, 20 Apr 2017 04:59:56 -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=muxJ6pcxDr/e4h2ioGH62/2CHg4=; b=Cv2Dyn 8wE++JsZlVPdTQAAwXVl7126d+jsPhV0cWdXREC/CYb45P2PSecXvQyTv+zrdmpl NPxMilQk39RgvuGyk6wiKhCOQF5iteTjBIUa3drqPDoJVgLHTYxemfdKHCQzK4b9 MQev42tyjO3lUYqTQCBCekF9r9D940bcFcbg0= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 644B36356A; Thu, 20 Apr 2017 04:59:56 -0400 (EDT) Received: from clucks (unknown [151.127.12.20]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 6D5AB63569; Thu, 20 Apr 2017 04:59:55 -0400 (EDT) From: Andy Wingo To: Thomas Danckaert Subject: Re: bug#26013: (srfi srfi-37) chokes on empty string parameter References: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> <87inm0l9be.fsf@igalia.com> <20170419.183229.1069589305335594566.post@thomasdanckaert.be> Date: Thu, 20 Apr 2017 10:59:47 +0200 In-Reply-To: <20170419.183229.1069589305335594566.post@thomasdanckaert.be> (Thomas Danckaert's message of "Wed, 19 Apr 2017 18:32:29 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: B941FCB6-25A7-11E7-A3E1-571C92A0D1B0-02397024!pb-sasl2.pobox.com X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 26013-done Cc: 26013-done@debbugs.gnu.org, ludo@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) On Wed 19 Apr 2017 18:32, Thomas Danckaert writes: >> On Tue 07 Mar 2017 16:34, Thomas Danckaert >> writes: >> >>> It looks like Guile's srfi-37 implementation doesn't process empty >>> string arguments correctly. > I don't fully understand the code in srfi-37.scm, but I think the fix > can be as simple as the attached patch (i.e. first check if the argument > is empty, otherwise check if it starts with \#-). Applied, thanks :) Andy From unknown Fri Sep 19 18:50:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 May 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator