Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd0f2ebdde4f3fd24c1c5a2ef6c86e88c13b8177
Ticket: 1201171fffffffffffffffffffffffffffffffff
TclpSetInitialEncodings works only once on Unix
User & Date: yaroslav1 on 2005-10-25 12:41:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=1272045
    
    This is my answer to the letter from Andreas
    Kupries (looks like he doesn't received it).
    
    > Attached to the bug is a patch claiming to fix the
    > problem. I have now created two sets of tclkits, one
    > with and one without this patch. The kits are built
    > for Linux/Intel.
    
    Hello, Andreas.
    
    I've tried your kits. They don't fix the problem.
    
    Transcript:
    % encoding system iso8859-1
    
    So, I want to repeat my patch (it is in original report) to
    unix/tclUnixInit.c:
    -----------------PATCH---------------------
    --- tclUnixInit.c       Thu May 12 20:18:51 2005
    +++ tclUnixInit.c.new   Thu May 12 20:14:03 2005
    @@ -485,7 +485,8 @@
    void
    TclpSetInitialEncodings()
    {
    -    if (libraryPathEncodingFixed == 0) {
    +
    +/*    if (libraryPathEncodingFixed == 0) { */
           CONST char *encoding = NULL;
           int i, setSysEncCode = TCL_ERROR;
           Tcl_Obj *pathPtr;
    @@ -647,6 +648,7 @@
            * dependent behavior.
            */
    
    +        if (libraryPathEncodingFixed == 0) {
           setlocale(LC_NUMERIC, "C");
    
           /*
    -----------------PATCH---------------------
    
    Tclkit I've built with it really fixes the problem.
    
    Transcript:
    % encoding system
    koi8-r
    
    Why don't you accept it? If you look into Windows
    implementation of TclpSetInitialEncodings, you'll see
    almost the same code I'm offering. What's wrong with it?
    
    
    
  2. login: "yaroslav1"
  3. mimetype: "text/plain"
  4. username: "yaroslav1"