Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-04-15
17:17 • Closed ticket [3517696fff]: fconfigure -flush sync gives buffer error plus... artifact: 3bd60f1f4d user: dkf
2012-04-14
08:48 • New ticket [3517696fff]. artifact: 8dded8a735 user: teopetuk

[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.