minor change to concat in output-strings.
This commit is contained in:
parent
7b8b50a6aa
commit
3c520ea9d3
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -53,7 +53,7 @@
|
|||
(let ([outbv ($make-bytevector n)])
|
||||
(let f ([n (copy outbv bv i n)] [ls ls])
|
||||
(if (null? ls)
|
||||
(utf8-bytevector->string outbv)
|
||||
outbv
|
||||
(let ([a ($car ls)])
|
||||
(f (copy outbv a ($bytevector-length a) n) ($cdr ls)))))))))
|
||||
(define sum
|
||||
|
@ -140,9 +140,11 @@
|
|||
(set! open? #f)]
|
||||
[(port-name p) 'string-port]
|
||||
[(get-output-string p)
|
||||
(concat ($port-output-buffer p)
|
||||
($port-output-index p)
|
||||
buffer-list)]
|
||||
(utf8-bytevector->string
|
||||
(concat
|
||||
($port-output-buffer p)
|
||||
($port-output-index p)
|
||||
buffer-list))]
|
||||
[else (error 'output-handler
|
||||
"unhandled message ~s" (cons msg args))])))
|
||||
output-handler))
|
||||
|
|
Loading…
Reference in New Issue