Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-12-15
00:11 • Closed ticket [1850468fff]: seek behavior not correct plus 3 other changes artifact: 6c3a22ade0 user: hobbs
2007-12-14
09:30 • Open ticket [1850468fff]. artifact: 4d8c008635 user: jenglish
09:30 • Closed ticket [1850468fff]. artifact: 1e13bbfba9 user: hobbs
02:18 • New ticket [1850468fff]. artifact: 9a3c144166 user: hobbs

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.