[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
0001-srfi-13-fix-bug-in-string-trim-right.patch
Description: Text Data
- Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter, (continued)
- Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter, Mario Domenech Goulart, 2014/01/11
- Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter, Mario Domenech Goulart, 2014/01/19
- Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter, John Cowan, 2014/01/22
- Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter, Alex Shinn, 2014/01/22
- [Chicken-hackers] Bug in SRFI 13 string-skip-right (was: fix for string-trim-right), John Cowan, 2014/01/22
- Re: [Chicken-hackers] Bug in SRFI 13 string-skip-right (was: fix for string-trim-right), Alex Shinn, 2014/01/23
Re: [Chicken-hackers] [PATH] fix for srfi-13 string-trim-right start parameter,
Mario Domenech Goulart <=