This change in string-substitute should be applied to regex.scm,
pcre.scm and pregexp.scm:

<                       (if (not (char=? #\\ c2))
---
>                       (if (and (not (char=? #\\ c2)) (char-numeric? c2))

I'll factor out the common code. Thanks for the bug report.


cheers,
felix


On 11/4/05, Daishi Kato <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was going to escape a single quote in a string,
> and got this:
>
> #;1> (string-substitute "'" "\\'" "abc'def")
> Error: (list-tail) out of range
> ((3 4))
> -9
>
> Anything wrong with regexp?
> Daishi
>
>
>
> _______________________________________________
> Chicken-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to