Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a158a95efd4e95317b79e9858142bec410e24332
Ticket: 3475569fffffffffffffffffffffffffffffffff
Unexpected behavior / Panic / Tcl_Obj deletion management
User & Date: sebres on 2012-01-24 06:36:50
Changes

  1. icomment:
    How could i produce in pure tcl a "delete pending", or create my own tcl obj type?
    Today all heuristics cells in my brain have died... :)
    
    I try to build pure C code later, but it's something like this:
    in function testDP_FreeIntRep :
    >>>>
    Tcl_Obj * newObj = Tcl_NewStringObj("/a/b/../c/d", -1);
    Tcl_IncrRefCount(newObj);
    TclFSNormalizeAbsolutePath(..., newObj, ...);
    // BOOM ...
    <<<<
    
    or 
    
    >>>>
    // but first time only (encoding does not yet loaded, 
    // tcl_library should be like "/a/b/../c/d" - also with ".."
    Tcl_GetEncoding(NULL, "cp1251");
    <<<<
    
    
  2. login: "sebres"
  3. mimetype: "text/plain"
  4. username: "sebres"