Opened 13 years ago
Closed 13 years ago
#869 closed defect (fixed)
xsubstring with negative `from' argument returns empty string
| Reported by: | Mario Domenech Goulart | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core libraries | Version: | 4.7.x |
| Keywords: | srfi-13, xsubstring | Cc: | |
| Estimated difficulty: |
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).
Note: See
TracTickets for help on using
tickets.

Fixed by 250fa01d489c8a9571fa256f402c4ea4df22246b