|
2011-06-28
| ||
| 00:20 | • Closed ticket [506653ffff]: Trouble escape encod. as system encod. plus 6 ot... artifact: 3b481fb871 user: sf-robot | |
|
2011-06-13
| ||
| 23:25 | • Pending ticket [506653ffff]. artifact: 6ea566703b user: dgp | |
|
2009-12-10
| ||
| 02:47 | • Ticket [506653ffff]: 1 change artifact: a03df97203 user: dgp | |
|
2007-11-28
| ||
| 01:57 | • Ticket [506653ffff]: 5 changes artifact: 4612d9a274 user: dgp | |
|
2006-10-11
| ||
| 19:47 | • Ticket [506653ffff]: 1 change artifact: 82fccbf8c0 user: dgp | |
|
2006-03-25
| ||
| 04:27 | • Open ticket [506653ffff]. artifact: c6d45493aa user: dgp | |
|
2006-03-14
| ||
| 03:57 | • Closed ticket [506653ffff]. artifact: 58d90cffe0 user: dgp | |
|
2006-03-10
| ||
| 13:11 | • Ticket [506653ffff]: 2 changes artifact: 29dfa05227 user: dgp | |
|
2004-07-02
| ||
| 04:26 | • Add attachment 506653.patch to ticket [506653ffff] artifact: eb6092355f user: dgp | |
| 04:26 | • Ticket [506653ffff] Trouble escape encod. as system encod. status still Open... artifact: 528575f122 user: dgp | |
|
2003-09-16
| ||
| 04:10 | • Ticket [506653ffff]: 1 change artifact: f5c90ee652 user: dkf | |
| 02:54 | • Ticket [506653ffff]: 1 change artifact: 9894837112 user: dkf | |
|
2002-01-22
| ||
| 04:34 | • Ticket [506653ffff]: 1 change artifact: 44c52a323a user: andreas_kupries | |
|
2002-01-21
| ||
| 21:32 | • New ticket [506653ffff]. artifact: 524f2f4678 user: andreas_kupries | |
Trouble escape encod. as system encod.
Closed / Out of Date506653ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 15 years ago
Descriptionplain2002-01-21 21:32:32
This is a follow-up report to #219314. While the patch for that report possibly fixes the problem for the particular strings used it does not solve the general problem exposed by the test script in that report. The general problem is this: When using an escape encoding as the system encoding where will come a time when the escape encoding has to load one of the subordinate encodings to perform its task. At that time the system will try to translate the filename for that subordinate encoding using the current system encoding. Which is partially loaded, we have to load a subordinate encoding. The filename for that has to be translated ... Ad infinitum. Or at least until stack or heap run out. Jeff proposes the following general solution: When the command [encoding system] detects that the users asked it to make an escape encoding the system encoding it preloads all subordinate encodings *before* installing the escape encoding as the new system encoding. This prevents any future attempts to load the subordinate encodings. The penalty is that loading the system encoding takes more time in this case.
andreas_kupries Ticket [506653ffff]: 1 change
[History diff]2002-01-22 04:34:36
dkf Ticket [506653ffff]: 1 change
[History diff]2003-09-16 02:54:51
dkf Ticket [506653ffff]: 1 change
[History diff]2003-09-16 04:10:02
dgpplain2004-07-02 04:26:33
File Added - 92565: 506653.patch Logged In: YES user_id=80530 It appears to me that Patch 689341(committed in February 2003) has for the most part fixed this bug. Since it was applied, the loading of an escape encoding causes all of its subencodings to be loaded first. The only issue that appears to be unresolved is handling the case where one or more of the subencodings is missing. The attached patch fills that hole. Please review and apply if acceptable.
dgp Ticket [506653ffff]: 2 changes
[History diff]2006-03-10 13:11:03
dgpplain2006-03-14 03:57:46
Logged In: YES user_id=80530 committed for 8.4.13 and 8.5a4
dgpplain2006-03-25 04:27:24
Logged In: YES user_id=80530 Based on testing reports, the latest patch was good for 8.4.13, but kills performance on Windows somehow on 8.5a4. Reverted from the HEAD.
dgp Ticket [506653ffff]: 1 change
[History diff]2006-10-11 19:47:09
dgpplain2007-11-28 01:57:41
Logged In: YES user_id=80530 Originator: NO I lost track of this one. Is this still buggy on the HEAD? Is the patch still an effective, but performance-killing-on-Windows fix there?
dgp Ticket [506653ffff]: 1 change
[History diff]2009-12-10 02:47:50
dgpplain2011-06-13 23:25:54
The difference between branches when a subencoding of an escape encoding is missing persists. In 8.4.* the missing encoding is noticed when we try to first load the escape encoding and an error is thrown. In 8.5+ we carry on, and later if that missing subencoding is actually needed during encoding operations and it remains missing, Tcl will panic. The original bug (infinite loop loading an escape encoding) is long fixed. This ticket had hi priority as a signal to discover what it was in the revised encoding system of 8.5 that killed performance on Windows when patched. That was never determined. Unknown whether it is even still true. Either branch's approach to this vanishingly rare event seems defensible. Plan to just leave things alone.
sf-robotplain2011-06-28 00:20:03
allow_comments - 1 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:
- 506653.patch [download] added by dgp on 2004-07-02 04:26:33. [details]