Skip to content
Tcl Source Code View Ticket
Login

View Ticket

seek behavior not correct

Closed / Fixed1850468fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-14 02:18:22
# setup
set fd [open a.txt w]
puts $fd "1\n2\n3\n4\n5"
close $fd

# problem display
set fd [open a.txt a+]
seek $fd -4 end
puts $fd "here"
close $fd

# expected text is "1\n2\n3\nhere\n"
# 8.4.17 gives "1\n2\n3\n4\n5here\n"
# 8.4.7 and 8.5.0 give correct answer
hobbsplain2007-12-14 09:30:13
Logged In: YES 
user_id=72656
Originator: YES

id'd as same issue as 1773127, backported fix to 8.4.17.
jenglishplain2007-12-14 09:30:56
Logged In: YES 
user_id=68433
Originator: NO

See also: #680143, #1773127
hobbs Closed ticket [1850468fff]. [History diff]2007-12-15 00:11:58
Log in (anonymous is fine) to add a comment.