Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e50650a92390e16e51bf11c5fab95dc8412948fad8e8ee8a2eb67b52046083a8
Ticket: fa3d9fd818fa0072b60dcd14614ebf33d90e4d6b
[fcopy $chan1 $chan2 -size $size] is not [puts -nonewline $chan2 [read $chan1 -size $size]
User & Date: jan.nijtmans on 2023-04-05 22:23:41
Changes

  1. icomment:
    > I don't know why the tests fail only with the msvc build though
    
    It's because the gcc environment uses the bash shell, which reports to its clients that the system encoding is utf-8. The Visual Studio build environment uses the normal CMD shell, which has the normal system encoding on Windows. So, yes, this explains the difference.
    
    So, this leads to 3 different solutions.
    * Implementation change: Whenever ChannelState.encoding is NULL, make sure that Tcl_UtfToExternal() is explicitly given the iso8859-1 encoding.
    * don't set ChannelState.encoding to NULL when we want iso8859-1
    * change Tcl_UtfToExternal() so NULL means iso8859-1
    
    I think the last one is not desirable (would need a TIP, but utf-8 would be more reasonable), but the other two should be possible.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/plain"