Skip to content
Tcl Source Code History Of Ticket c776eb586d
Login

History Of Ticket c776eb586d

Artifacts Associated With Ticket c776eb586d

  1. Ticket change [732b3d8ea2] (rid 240281) by jan.nijtmans on 2025-05-21 10:01:32:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized 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 initialized to: "TIP #716"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "52. Portability Support"
    15. title initialized to:
      "encoding user": wrong answer with UTF-8 setting in manifest
      
    16. type initialized to: "Bug"
  2. Ticket change [38c6413096] (rid 240295) by apnadkarni on 2025-05-21 13:57:17:

    1. icomment:
      Good point. Agree that looking up the registry is the preferred method.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  3. Ticket change [65784ec273] (rid 240321) by apnadkarni on 2025-05-23 02:20:31:

    1. closedate changed to: "2460818.59758653"
    2. closer changed to: "apnadkarni"
    3. icomment:
      Fixed in [77971ca3f2]. Note by design, registry is read only once for consistency with Windows where code page does not change in a running process even if registry changes.
      
    4. login: "apnadkarni"
    5. mimetype: "text/x-fossil-plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"