Tcl Source Code

View Ticket
Login
Ticket UUID: 1846968
Title: "clock format" doesn't work after Tcl_MakeSafe in 8.5
Type: Bug Version: obsolete: 8.5b3
Submitter: conio Created on: 2007-12-08 18:55:37
Subsystem: 06. Time Measurement Assigned To: kennykb
Priority: 8 Severity:
Status: Closed Last Modified: 2008-02-20 10:20:14
Resolution: Wont Fix Closed By: sf-robot
    Closed on: 2008-02-20 03:20:14
Description:
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"
User Comments: sf-robot added on 2008-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).

kennykb added on 2008-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.

dgp added on 2007-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.)"

conio added on 2007-12-09 01:55:37:

File Added - 257788: clock.c

Attachments: