Artifacts Associated With Ticket 219229
Ticket change [f0550334dc] (rid 109172) by nobody on 2000-10-26 05:03:52:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4226 RFE Version: 8.3 SubmitDate: '2000-02-22' LastModified: '2000-04-26' Severity: SER Status: Assigned Submitter: welch ChangedBy: hobbs RelatedBugIDs: 1453 OS: All FixedDate: '2000-10-25' ClosedDate: '2000-10-25' The source command should accept all the fconfigure options so that you can source files in different encodings, different eofchars, etc. etc. Remember that the Mac has a -rsrc (-resource?) flag that we'll have to pay attention to, too.
- foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "37. File System"
- title initialized to: "source should accept all fconfigure options"
- type initialized to: "RFE"
Ticket change [84b309e33b] (rid 117604) by dkf on 2000-11-10 21:00:45:
- icomment:
You can just use open/read to load in the file any way you want and then eval (or uplevel) the result. This gets you 99% compatability, and very few people seem to use [info script] which is the other 1%...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [4f3dedf58e] (rid 125793) by dgp on 2000-11-10 22:42:56:
- icomment:
...and the expanded syntax [info script ?filename?] in Tcl 8.4 looks like it will provide (most of?) that other 1%.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6cb296f36d] (rid 128561) by andreas_kupries on 2000-11-17 19:12:31:
- foundin changed to: "obsolete: 8.4a3"
- priority changed to: "3 Low"
Ticket change [72149ca6cf] (rid 100797) by nobody on 2000-11-18 00:34:12:
- icomment:
I don't agree that open/fconfigure/read/eval is an adequate work-around. For a large script, that seems to impose significant memory overhead on the applicatoin. Perhaps I'm wrong, but doesn't [source] eval and discard the script each time [info complete] would return 1? -- Chris Nelson
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [7f245f12d5] (rid 97527) by dgp on 2000-11-18 05:35:38:
- icomment:
No, Chris, [source] is just script-level access to Tcl_EvalFile(), and that slurps up the whole contents of the file into a script, then Tcl_EvalEx()'s the script. No memory savings in [source].
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6dfb0a1e0c] (rid 128800) by dkf on 2000-11-21 16:50:02:
- closedate changed to: "2000-11-21T09:50:02"
- closer changed to: "dkf"
- icomment:
Closing this, as a full workaround (which can also do more than was envisaged by the original bug submitter) is available.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "dkf"
Ticket change [7daaeb5de1] (rid 97278) by dgp on 2001-03-02 06:25:07:
- closedate changed to: "2001-03-01T23:25:07"
- closer changed to: "dgp"
Ticket change [1f0a589651] (rid 91077) by dgp on 2001-04-04 03:49:08:
- closedate changed to: "2001-04-03T20:49:08"
- closer changed to: "dgp"
- subsystem changed to: "18. Commands M-Z"
Ticket change [0c005b8476] (rid 114097) by dgp on 2003-09-08 23:18:53:
- icomment:
Logged In: YES user_id=80530 FWIW, TIP 137 supplies the -encoding option to [source] in Tcl 8.5. Also the cross-platform -eofchar for [source] is fixed as the character \u001a (Control-Z) starting with Tcl 8.4 (Starkit support).
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: