Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 524f2f4678241496d40b70d4a4cbd7a719502fbd
Ticket: 506653ffffffffffffffffffffffffffffffffff
Trouble escape encod. as system encod.
User & Date: andreas_kupries on 2002-01-21 21:32:32
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "6"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "andreas_kupries"
  9. subsystem changed to: "44. UTF-8 Strings"
  10. title changed to: "Trouble escape encod. as system encod."
  11. type changed to: "Bug"