seanjensengrey / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

Input/output port doesn't forward position after reading some of its content #242

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Prepare in-out.dat with content 'hello'
2. Run following script
(import (rnrs))

(let ((in/out (open-file-input/output-port "in-out.dat"
                       (file-options no-fail no-truncate))))
  (display (utf8->string (get-bytevector-n in/out 10))) (newline)
  (put-bytevector in/out (string->utf8 "hello"))
  )

What is the expected output? What do you see instead?
the 'in-out.dat' contains 'hellohello'

it has only 'hello'

What version of the product are you using? On what operating system?
% mosh -V
Mosh R6RS scheme interpreter, version 0.2.7 (mosh-0.2.7 Tue, 14 Jun 2011 
07:00:31 +0900)

Please provide any additional information below.

Original issue reported on code.google.com by ktakash...@gmail.com on 29 Sep 2014 at 7:49