Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5ff76d6cf3be1b720db91f193c5ec229465d6e15
Ticket: 749448ffffffffffffffffffffffffffffffffff
can't find the encoding/ directory on Linux
User & Date: nobody on 2003-06-05 10:13:10
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here is how to hack the tclEncoding.c:
    /*     Tcl_ListObjGetElements(NULL, pathPtr, &objc, &objv);
        chan = NULL;
        for (i = 0; i < objc; i++) {
    chan = OpenEncodingFile(Tcl_GetString(objv[i]), name);
    if (chan != NULL) {
        break;
    }
        }
     */
    chan = OpenEncodingFile("/usr/local/lib/tcl8.4", name);
    (:))))))))))))))))))))))))))))))
    Debugging with gdb gets the following result:
    
    in Tcl_GetStringFromObj the first ptr is checked
    if (objPtr->bytes == NULL); well, it isn't, but the string
    is empty -- (the second, third ... are ok - the desired
    catalog is in the seventh)
    hence it's empty - we get zero length in:
    string = Tcl_GetStringFromObj(objPtr, &length);
    
    That's it. 
    ------
    
    --alex
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "36. Pathname Management"
  10. title changed to: "can't find the encoding/ directory on Linux"
  11. type changed to: "Bug"