Summary
xsubstring with negative `from' argument returns empty string
Metadata
- Id: 70d0637e6ab3110a6727370fe33359af4a3ac8a5
- Trac id: 869
- Type: defect
- Reporter: mario
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone:
- Version: 4.7.x
- Changetime: 2012-06-30 01:18:01 UTC
- Created: 2012-06-18 02:09:51 UTC
- Keywords: srfi-13, xsubstring
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