Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5cc87b9c98fcd63366818f56dacdc8904f6537050a48a21d653cafa76a94632b
Ticket: 3fc3287497a7e281b96661f883c20e0e74a0fca7
TclGetProcessGlobalValue encodes information twice on Windows
User & Date: jan.nijtmans on 2024-05-23 10:24:57
Changes

  1. icomment:
    First fix attempt [e99ba027563f4781|here]
    
    On UNIX/MacOS, and Tcl9.0b2 there is no problem, because the system encoding is always utf-8. So converting between native encoding and utf-8 doesn't change anything.
    
    If the system encoding is not utf-8, I see two different problems. The GlobalValues are internally stored in native encoding, and also stored in a separate cache. The cache storage should be in utf-8, but it isn't always!
    
    Further on, on Windows, the "hostname" value is stored in utf-8, in both the internal storage and in the cache. For the cache this is OK, but the native storage should have been done in the native encoding.
    
    I don't have a hostname with non-ascii characters here. Can someone confirm whether it works or not?
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"