Artifacts Associated With Ticket 1830450
Ticket change [1e962ea4b4] (rid 91000) by legolas_a20 on 2007-11-12 14:28:36:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
when opening a file, specifying "a+" as mode acts just like "a" when it comes to setting the file pointer before a puts, after a seek. Both act like "a", which, as the docs say: "Set the file pointer to the end of the file prior to each write." "A+" should, according to the docs "Set the initial access position to the end of the file." so if I open f with a+, and then do: seek $f 5 puts -nonewline $f "qqq" the qqq should end up at file position 5. It ends up at file position 'end' instead. See the attachment for a script that reproduces this, and a workaround: using RDWR as mode works as "a+" should work. The script writes a file called test.bin, and then attempts to update the middle of it as described above (and fails to do that on my 8.4.16 on windows xp sp2), followed by doing the same thing with the workaround, on a file named test2.bin (and that does work).
- foundin initialized to: "obsolete: 8.4.16"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "legolas_a20"
- subsystem initialized to: "None"
- title initialized to: "open file treats a+ as a (append)"
- type initialized to: "Bug"
Add attachment "tclopenbug.tcl" [9eaf2169a5] (rid 96521) by legolas_a20 on 2007-11-12 21:28:36.
Ticket change [f4c0a66122] (rid 129981) by legolas_a20 on 2007-11-12 21:28:36:
- icomment:
File Added - 253930: tclopenbug.tcl
- login: "legolas_a20"
- mimetype: "text/plain"
- username: "legolas_a20"
- icomment:
Ticket change [a8f990e122] (rid 99078) by hobbs on 2007-12-14 09:34:53:
- closedate changed to: "2007-12-14T02:34:53"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Originator: NO Fixed in 8.4.17, dup of 1773127 that just didn't get backported.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "hobbs"