chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1135: string-copy! bug


From: Chicken Trac
Subject: [Chicken-janitors] #1135: string-copy! bug
Date: Fri, 27 Jun 2014 14:51:03 -0000

#1135: string-copy! bug
-----------------------------------+----------------------------------------
 Reporter:  mario                  |       Owner:        
     Type:  defect                 |      Status:  new   
 Priority:  major                  |   Milestone:  4.10.0
Component:  core libraries         |     Version:  4.9.x 
 Keywords:  string-copy!, srfi-13  |  
-----------------------------------+----------------------------------------
 While using the [http://wiki.call-cc.org/egg/gap-buffer gap-buffer egg]
 (implementation ported from Guile), I noticed a weird behavior in certain
 cases (see http://lists.gnu.org/archive/html/guile-
 devel/2014-06/msg00060.html)

 Looks like the culprit is {{{string-copy!}}} (probably
 {{{C_substring_copy}}}), as it was in Guile's case (as
 [http://lists.gnu.org/archive/html/guile-devel/2014-06/msg00061.html
 pointed by Mark H Weaver]).

 A test case from Guile's test suite illustrates the problem:

 {{{
 (let ((str (string-copy "abcde")))
   (string-copy! str 1 str 0 3) str)
 => "aaaae"

 Expected: "aabce"
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1135>
CHICKEN Scheme <http://www.call-with-current-continuation.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]