Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-02-20
10:20 • Closed ticket [1846968fff]: "clock format" doesn't work after Tcl_... artifact: ce172407f8 user: sf-robot
2008-02-06
09:44 • Pending ticket [1846968fff]. artifact: ec33176723 user: kennykb
09:44 • Ticket [1846968fff]: 4 changes artifact: f8850f8d31 user: kennykb
2007-12-19
22:30 • Ticket [1846968fff]: 4 changes artifact: 838f7b529b user: dgp
2007-12-09
03:29 • Ticket [1846968fff]: 1 change artifact: 3d0ac6ff39 user: dkf
01:55 • Ticket [1846968fff]: 4 changes artifact: ac1bf9c2ab user: conio
01:55 • Add attachment clock.c to ticket [1846968fff] artifact: e0859ff837 user: conio
2007-12-08
18:55 • New ticket [1846968fff] "clock format" doesn't work after Tcl_Make... artifact: 65784fd0cb user: conio

"clock format" doesn't work after Tcl_MakeSafe in 8.5

Closed / Wont Fix1846968fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-08 18:55:37
See the attached test case for details.

Expected result (linked against Tcl 8.4.7):
(0) Sat Dec 08 12:41:47 CST 2007

Actual result (linked against Tcl 8.5b3):
(1) invalid command name "file"
conioplain2007-12-09 01:55:37
File Added - 257788: clock.c
dkf Ticket [1846968fff]: 1 change [History diff]2007-12-09 03:29:16
dgpplain2007-12-19 22:30:42
Logged In: YES 
user_id=80530
Originator: NO


Note the comments in the
2004-08-18 ChangeLog entry:

"In addition to the functionality changes called out in the two TIPs,
it is worth noting that the [clock] command in a safe slave
interpreter is now an alias to the [clock] command in the master, and
that [clock] is otherwise not expected to function entirely correctly
in safe interps. C code that simply does Tcl_MakeSafe needs to be
aware that [clock] may need special handling. (It appears unlikely
that such code actually exists.)"
kennykbplain2008-02-06 09:44:17
Logged In: YES 
user_id=99768
Originator: NO

Can you describe your use case for Tcl_MakeSafe (as opposed 
to Tcl_CreateSlaveInterp)?  At the time that the 8.5 [clock]
command was first proposed, there were no known extensions
that used Tcl_MakeSafe, and in fact, safe interpreters are
rather dodgy in other respects unless they have unsafe
masters. Consensus seems to be that Tcl_MakeSafe will at
some point be deprecated, unless we hear a strong case in
its favor.

If you do have a strong use case, please change the status
of this bug back to "Open" and post a comment indicating
what it is you're trying to accomplish.
kennykb Pending ticket [1846968fff]. [History diff]2008-02-06 09:44:18
sf-robotplain2008-02-20 10:20:14
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.

Attachments: