Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 26c9be38b0d1f1d19a8b9b6bad86ab8a9ae566ccc03fb3e2444262164a34a4d0
Ticket: 8f89e2e059aafa1cff0622d85efb936f48c04411
Windows: environment is not reflected properly (special characters)
User & Date: sebres on 2020-03-12 18:22:19
Changes

  1. icomment:
    1. You cannot change the system encoding via command line parameter - this specifies only the char-set of the content of given script (so basically loads the file with proper encoding only):
    <verbatim>
       # this does not change system encoding:
       > echo puts [encoding system] | tclsh86 -encoding utf-8
       cp1252
       # this will load "main.tcl" using utf-8, but also does not change sys-encoding:
       > echo puts [encoding system] > %TEMP%\main.tcl
       > tclsh86.exe -encoding utf-8 %TEMP%\main.tcl && del %TEMP%\main.tcl
       cp1252
    </verbatim>
    So you have either to set it properly in the system or in the main script self.
    
    2. I tried to back-port my "fix" and got many conflicts I have still to resolve (and I'm pretty sure I get some things in env.test that I have to correct too)... be patient.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"