Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 22d7139a39722cf955c3787420d79bf693181a8b1331ec588e849fa267defdb8
Ticket: 8ffd8cabd10e936228f73e082d8d72eb874a2fbe
"encoding system": wrong result without manifest
User & Date: jan.nijtmans on 2025-05-05 08:37:16
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The windows "tcl90.dll" can be linked into other applications than only tclsh and wish. Doing that, if the other application doesn't use a manifest, "encoding sytem" gives the wrong answer.
    
    Example: people using the DB2 database use that, because the DB2 dll cannot handle the "utf-8" encoding. Removing the "UTF-8" setting in the manifest is a workaround, possibly resulting in encoding problems all around Tcl. The wrong answer for "system encoding" is the worst of those problem, which can easily be solved. That's the purpose of this ticket.
    
    This can be demonstrated by building Tk, but removing the UTF-8 setting from the manifest. Demo:
    <pre>
        >.\tclsh90.exe
        % encoding system
        utf-8
        % exit
        >.\wish90.exe
        % encoding system
        cp1252
        % exit
    </pre>
    
    Note that the "tcl90.dll" file used by tclsh90 and wish90 is identical in this example.
    
    Since the default encoding on Windows starting with Tcl 9.0 is supposed to be UTF-8, this can result in encoding problems, when Tcl and Tk (in this example) are exchanging files.
    
  5. foundin changed to: "9.0"
  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: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "52. Portability Support"
  15. title changed to: ""encoding system": wrong result without manifest"
  16. type changed to: "Bug"