Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[fconfigure -flush sync] gives buffer error

Closed / Fixed3517696fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2012-04-14 08:48:16
Hi!

Appears that [fconfigure $chan -flush sync] (or -flush full) returns buffer error in the following example:

set fd [open file.zlib w]
zlib push compress $fd
puts $fd "qwertyuiop"
fconfigure $fd -flush sync
puts $fd "qwertyuiop"
close $fd
dkfplain2012-04-15 17:17:42
allow_comments - 1

Hmm, what a curious API; "nothing more to write" is signaled with Z_BUF_ERROR... Fixed.
Log in (anonymous is fine) to add a comment.