Skip to content
Tcl Source Code View Ticket
Login

View Ticket

-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: