chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start par


From: Mario Domenech Goulart
Subject: Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter
Date: Sun, 19 Jan 2014 22:20:43 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Sat, 11 Jan 2014 09:31:04 -0800 Seth Alves <address@hidden> wrote:

> After some discussion in #chicken, we concluded that
>
>   (string-trim-right "abc   " char-whitespace? 1)  --> "abc"
>
> is wrong and that the right answer is "bc".  Gauche and Sagittarius and
> Guile return "bc".  Racket returns "abc" but appears, like CHICKEN, to
> have faithfully ported the bug from the reference implementation.

Thanks, Seth.

Attached is a git-formatted patch (amended with some tests).

Note that this patch depends on another patch:
http://lists.gnu.org/archive/html/chicken-hackers/2014-01/msg00023.html

Best wishes.
Mario
-- 
http://parenteses.org/mario

Attachment: 0001-srfi-13-fix-bug-in-string-trim-right.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]