Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4262ad5e02954cf7b5cc1132b53369f7ef543153
Ticket: 1869405fffffffffffffffffffffffffffffffff
gets returns crap on tls-channels
User & Date: fomp on 2008-01-20 08:53:08
Changes

  1. icomment:
    Logged In: YES 
    user_id=411868
    Originator: NO
    
    ups, forgot the patch...
    
    --- generic/tclIO.c     13 Dec 2007 15:23:17 -0000      1.136
    +++ generic/tclIO.c     20 Jan 2008 01:14:09 -0000
    @@ -3953,12 +3953,6 @@
         char *dst, *dstEnd, *eol, *eof;
         Tcl_EncodingState oldState;
     
    -    /*
    -     * This operation should occur at the top of a channel stack.
    -     */
    -
    -    chanPtr = statePtr->topChanPtr;
    -
         if (CheckChannelErrors(statePtr, TCL_READABLE) != 0) {
            copiedTotal = -1;
            goto done;
    @@ -3976,6 +3970,12 @@
            return TclGetsObjBinary(chan, objPtr);
         }
     
    +    /*
    +     * This operation should occur at the top of a channel stack.
    +     */
    +
    +    chanPtr = statePtr->topChanPtr;
    +
         bufPtr = statePtr->inQueueHead;
         encoding = statePtr->encoding;
     
    @@ -4319,6 +4319,12 @@
         bufPtr = statePtr->inQueueHead;
     
         /*
    +     * This operation should occur at the top of a channel stack.
    +     */
    +
    +    chanPtr = statePtr->topChanPtr;
    +
    +    /*
          * Preserved so we can restore the channel's state in case we don't find a
          * newline in the available input.
          */
    
    
    
  2. login: "fomp"
  3. mimetype: "text/plain"
  4. username: "fomp"