wrong size arguments given to $make-port

Bug #175485 reported by Derick Eddington on 2007-12-11
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Abdulaziz Ghuloum

Bug Description

I think these are mistakenly giving 0 for the size argument:

scheme/ikarus.io.ss:192: ($make-port 0 0 bv 0 #f #f attrs id read! write! get-position
scheme/ikarus.io.ss:198: ($make-port 0 0 bv 0 #f #f attrs id read! write! get-position
scheme/ikarus.io.ss:1041: ($make-port 0 0 (make-bytevector size) 0

In any case, when writing to a custom textual output-port, it's giving the error:

Ikarus Scheme version 0.0.2patched+ (revision 1218, build 2007-12-10)
Copyright (c) 2006-2007 Abdulaziz Ghuloum

> (import (srfi string-ports))
> (define sop (open-output-string))
> (write 'blah sop)
Unhandled exception
 Condition components:
   1. &error
   2. &who: write-char
   3. &message: "insufficient space in port"
   4. &irritants: (#<output-port "string-output-port">)

Abdulaziz Ghuloum (aghuloum) wrote :

The input ports should have their size be 0 (as it was). The output ports should have their size be the buffer-size (corrected in revision 1222). Thanks.

Changed in ikarus:
assignee: nobody → aghuloum
status: New → Fix Committed
Abdulaziz Ghuloum (aghuloum) wrote :

This bug report is about to be closed as the fix comitted
previously will be incorporated in the next 0.0.3 release of
Ikarus Scheme, scheduled for January 31, 2008. A release
candidate tarball is available for download from:
Please do test it if you have the time and report any issues
you might encounter. Thank you very much for your support.
(Sorry for the duplicates; I'm updating every open bug.)

Changed in ikarus:
milestone: none → 0.0.3
Changed in ikarus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers