Unbuffered output ports not implemented
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Low
|
Abdulaziz Ghuloum |
Bug Description
Unbuffered output ports appear to actually be buffered.
(Found when poking around; not needed for anything I'm doing)
$ ./src/ikarus -b ./scheme/
Ikarus Scheme version 0.0.3+ (revision 1549, build 2008-07-23)
Copyright (c) 2006-2008 Abdulaziz Ghuloum
> (define x (open-file-
> (put-u8 x 97)
> ^Z
[2]+ Stopped ./src/ikarus -b ./scheme/
$ ls -l /tmp/testfile.ss
-rw------- 1 adamsmd students 0 Jul 23 12:03 /tmp/testfile.ss
Since the file size is zero, the port is obviously buffered even though we asked for an unbuffered port. (Later flushing the port though does write to the file.)
Related branches
Changed in ikarus: | |
milestone: | none → 0.0.4 |
Yes, the buffer-mode is currently ignored. Will investigate how bad it would be to add unbuffered ports.