Summary

xsubstring with negative `from' argument returns empty string

Metadata

Description

The reference implementation of SRFI-13 gives an example of xsubstring with a negative from argument:

 (xsubstring "abcdef" -2) => "efabcd"

In chicken:

 $ csi -nq -R srfi-13
 #;1> (xsubstring "abcdef" -2)
 ""

Gauche and Guile produce "efabcd" (they don't seem to use the SRFI-13 reference implementation code).

Changes and comments

[2012-06-30 01:18:01 UTC] mario changed status from new to closed

[2012-06-30 01:18:01 UTC] mario set resolution to fixed

[2012-06-30 01:18:01 UTC] mario wrote:

Fixed by 250fa01d489c8a9571fa256f402c4ea4df22246b