Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 732b3d8ea2bf8b10ff5041beb4b9468608384e6ff02ec96bd1f3ef5c205f2dbf
Ticket: c776eb586d08c2f74ea462946b187e12ac182f0a
"encoding user": wrong answer with UTF-8 setting in manifest
User & Date: jan.nijtmans on 2025-05-21 10:01:32
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Just like [8ffd8cabd1], we expect all Tcl commands to give the same answer, whether the UTF-8 setting is available in the manifest or not.
    
    Let's see if TIP #716 adhers to that:
    
    <pre>
    >.\tclsh90
    % tcl::build-info
    9.0.2+af16c07b81655fabde8028374161ad54b84ef9956843c63f49976b4ef601b611.gcc-1002
    % encoding user
    cp1252
    % exit
    
    >.\wish90
    % tcl::build-info
    9.0.2+af16c07b81655fabde8028374161ad54b84ef9956843c63f49976b4ef601b611.gcc-1002
    % encoding user
    utf-8
    % exit
    </pre>
    
    We expect the same answer (cp1252) in both cases. If tcl90.dll is embedded in R, the same will happen in that environment (using wish90 here is just for demo purposes).
    
    Note that wish90 has the UTF-8 setting in the manifest, tclsh90 has not (it's the TIP #716 implementation). The tcl dll (tcl90.dll) is the same in both cases.
    
    TIP #718 doesn't have this problem, because it reads value from the registry directly in stead of depending on the getACP() function (which is the cause of the problem here).
    
  5. foundin changed to: "TIP #716"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "52. Portability Support"
  15. title changed to:
    "encoding user": wrong answer with UTF-8 setting in manifest
    
  16. type changed to: "Bug"