Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3761e7d935464c7e07363a17b88090b12b7c9d9d
Ticket: 2888099fffffffffffffffffffffffffffffffff
[close] discards buffered data when no space left on device
User & Date: ferrieux on 2009-11-10 00:28:52
Changes

  1. icomment:
    I think it is in the code beginning at line 3042 of tclIO.c:
    
       /*
         * When the channel has an escape sequence driven encoding such as
         * iso2022, the terminated escape sequence must write to the buffer.
         */
    
    [...]
    WriteChars(chanPtr, "", 0);
    [...]
    if (statePtr->chanMsg != NULL) {
        if (interp != NULL) {
    Tcl_SetChannelErrorInterp(interp,statePtr->chanMsg);
        }
    
    As proof, just [fconfigure -translation binary]: the error "no space left on device" is reported again !
    
    The crux of the problem is that the errorCode 28 (ENOSPC) is properly reported into the interpreter by FlushChannel, but in the snippet above, the detection is based on a bypass message. At this point there is no chanMsg, and all trace of an error is forgotten.
    I'd appreciate Andreas' presence to confirm the diagnosis and prescribe the medicine.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"