Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3a14f7f216626cdaed4e718527145b43e8b5d666b3f5f87f7c476e5079363258
Ticket: 6978c01b652ac87cfc7913f5e534825f15824768
Channel encoding difference 8.6 <-> 9.0
User & Date: oehhar on 2022-09-11 12:56:51
Changes

  1. icomment:
    Some debugging.
    
    The call to tclio.c/4348:
    <verbatim>
    	result = Tcl_UtfToExternal(NULL, encoding, src, srcLimit,
    		statePtr->outputEncodingFlags,
    		&statePtr->outputEncodingState, dst,
    		dstLen + BUFFER_PADDING, &srcRead, &dstWrote, NULL);
    </verbatim>
    
    In TCL 9.0 with outputEncodingFlags=0 results in the result = -3 (TCL_CONVERT_UNKNOWN).
    
    This error is ignored.
    
    I think, we would need an error return list after the call like:
    
    <verbatim>
    if (result == TCL_CONVERT_UNKNOWN) {
        Tcl_SetErrno(EILSEQ);
        return -1;
    }
    </verbatim>
    
    Sunday session over, back on monday.
    
    Take care,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"