Tcl Source Code

View Ticket
Login
Ticket UUID: 742683
Title: -encoding option for [source] and tclsh
Type: Patch Version: None
Submitter: a_kovalenko Created on: 2003-05-24 12:38:20
Subsystem: 18. Commands M-Z Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-09-06 04:52:24
Resolution: Accepted Closed By: dgp
    Closed on: 2003-09-05 21:52:24
Description:
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.
User Comments: dgp added on 2003-09-06 04:52:24:
Logged In: YES 
user_id=80530


committed to HEAD (8.5a0)

dgp added on 2003-09-06 04:29:31:

File Deleted - 60603:

dgp added on 2003-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.

dgp added on 2003-09-04 23:14:56:

File Deleted - 60543: 



File Added - 60603: tip137.patch

Logged In: YES 
user_id=80530


OK, number 4 then.

dgp added on 2003-09-04 08:22:06:

File Deleted - 60540: 



File Added - 60543: tip137.patch

dgp added on 2003-09-04 08:22:05:
Logged In: YES 
user_id=80530


3rd time's a charm... ?

dgp added on 2003-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.

dgp added on 2003-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.

a_kovalenko added on 2003-05-24 19:38:20:

File Added - 51162: tcl-enc-option.patch

Attachments: