Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: af7168fcf21a07e11bfa27799387624b705b900f
Ticket: 3307281fffffffffffffffffffffffffffffffff
Tcl_SetStdChannel not respected by 'puts'
User & Date: anonymous on 2011-05-26 00:35:27
Changes

  1. icomment:
    Hi ferrieux,
    
    Thanks for the hint and the response. I dug around a little more and realized that the right fix is probably to invalidate the pointer to the stdout object that Tcl_PutsObjCmd maintains. I implemented it the most direct possible manner: Tcl_SetStdChannel will call a function in tclIOCmd.c to invalidate it's ThreadSpecificData.
    
    I've attached the patch.
    
    Not sure if this how inter-file communication should be handled etc. If you think this is the right fix, could you please clean it up and check it in?
    
    Thanks a lot.
    Ranga
    
    
  2. login: ""
  3. mimetype: "text/plain"
  4. username: ""