Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-09-06
04:52 • Closed ticket [742683ffff]: -encoding option for source and tclsh plus 8 o... artifact: 6b46581e26 user: dgp
04:29 • Ticket [742683ffff]: 4 changes artifact: 12dbeff731 user: dgp
04:29 • Ticket [742683ffff]: 4 changes artifact: 1e2b85183c user: dgp
04:29 • Add attachment tip137.patch to ticket [742683ffff] artifact: 44fe01821c user: dgp
2003-09-04
23:14 • Ticket [742683ffff] -encoding option for source and tclsh status still Ope... artifact: 7edcd132ab user: dgp
08:22 • Ticket [742683ffff]: 4 changes artifact: 8d133f7667 user: dgp
08:22 • Ticket [742683ffff]: 4 changes artifact: 2b0d3a1d86 user: dgp
07:48 • Ticket [742683ffff]: 4 changes artifact: 02184c5cf2 user: dgp
03:49 • Ticket [742683ffff]: 1 change artifact: 9f3e04a150 user: jenglish
03:41 • Ticket [742683ffff]: 4 changes artifact: d7320984aa user: dgp
03:41 • Ticket [742683ffff]: 1 change artifact: 553dce626b user: dgp
2003-05-24
19:38 • Ticket [742683ffff]: 4 changes artifact: 9979f00482 user: a_kovalenko
19:38 • Add attachment tcl-enc-option.patch to ticket [742683ffffffffff|742683f... artifact: 52f0cdb3a6 user: a_kovalenko
12:38 • New ticket [742683ffff] -encoding option for source and tclsh. artifact: af8946ba00 user: a_kovalenko

-encoding option for [source] and tclsh

Closed / Accepted742683ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-05-24 12:38:20
This patch adds Tcl_FSEvalFileEx public function, which
takes an encoding as argument and uses it to read the
script file. Using this function, it adds -encoding
option to the [source] command and to the tclsh shell.
tclsh accepts this option in two forms:
"tclsh -encoding name file"  and "tclsh -encoding:name
file". The second form is very useful when the script
begins with "#!/usr/bin/tclsh". In Unix, only one extra
argument can be taken from "#!" line.
a_kovalenkoplain2003-05-24 19:38:20
File Added - 51162: tcl-enc-option.patch
dgp Ticket [742683ffff]: 1 change [History diff]2003-09-04 03:41:52
dgpplain2003-09-04 03:41:53
File Added - 60519: tip137.patch

Logged In: YES 
user_id=80530

Here's an updated patch that
implements TIP 137 (with
TIP 151 modifications).  It
fills in the missing docs, and
revises some ot the implementation
a bit.  Still could use more test
cases in the test suite for the
new functions.

Please review.
jenglish Ticket [742683ffff]: 1 change [History diff]2003-09-04 03:49:13
dgpplain2003-09-04 07:48:19
File Deleted - 60519: 



File Added - 60540: tip137.patch

Logged In: YES 
user_id=80530


another update.  fixes a few bugs
I noticed just after posting the
last one.
dgpplain2003-09-04 08:22:05
Logged In: YES 
user_id=80530


3rd time's a charm... ?
dgpplain2003-09-04 08:22:06
File Deleted - 60540: 



File Added - 60543: tip137.patch
dgpplain2003-09-04 23:14:56
File Deleted - 60543: 



File Added - 60603: tip137.patch

Logged In: YES 
user_id=80530


OK, number 4 then.
dgpplain2003-09-06 04:29:30
File Added - 60750: tip137.patch

Logged In: YES 
user_id=80530


new patch has tests, and
fixes bugs exposed by those tests.
dgpplain2003-09-06 04:29:31
File Deleted - 60603:
dgpplain2003-09-06 04:52:24
Logged In: YES 
user_id=80530


committed to HEAD (8.5a0)
Log in (anonymous is fine) to add a comment.

Attachments: