Tk Source Code

View Ticket
Login
Ticket UUID: e38c5ad524ffb944e02f4c64434771a8e8254691
Title: "winfo server ." give incorrect result under Tcl/Tk 9.0.1 for Windows 10
Type: Bug Version: 9.0.1
Submitter: anonymous Created on: 2025-09-17 12:10:09
Subsystem: 85. Win Build Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Critical
Status: Closed Last Modified: 2026-01-12 05:36:57
Resolution: Fixed Closed By: apnadkarni
    Closed on: 2026-01-12 05:36:57
Description:
Under "Windows 10 Pro 22H2 64-bit build 19045.6218" and "Windows 10 Enterprise 22H2 64-bit build 19045.6216" the results of "winfo server ." are different over the used Tcl/Tk versions!
Under ActiveState with ActiveTcl 8.6.4.1, BAWT 2.3.1 with Tcl/Tk 8.6.13 and BAWT 3.0.1 with Tcl/Tk 8.6.16 the result is correct with "Windows 10.0 19045 Win64" or "Windows 10.0 19045 Win32".
Under BAWT 3.0.1 with Tcl/Tk 9.0.1 the result is "Windows 0.1 0 Win64". That is not correct.
I can't see the cause for this behavior. Maybe the rule-set for (regular?) expressions is now wrong (integer problem)?
BTW, "parray tcl_platform" is correct (and same) on all tested OS's and Tcl/Tk versions.
See https://wiki.tcl-lang.org/page/winfo+server
Greetings Thomas Wunderlich [TWu]
User Comments: apnadkarni added on 2026-01-12 05:32:12:
OS info structure was not initialized and did not use the Rtl version.

Fixed now in [357c4db1].

jan.nijtmans added on 2025-10-31 19:13:46:

Ping


juliannoble2 added on 2025-09-17 15:23:24:
I don't know the reason either, but some more data points from Windows 10 Pro 22H2 build 19045.6093

On a recent bawt build, tk9.0.2
% tcl::build-info
 9.0.2+92dca17850da73ac3ae7b77f9990f12767f6afa5eef3b243a9864b1c0f86224b.gcc-1402.static.tommath-0103.zlib-0103
% winfo server .
Windows 644.24 0 Win64

On a custom build of mine it goes even more awry, (but with older Tk 9.0b2)
% tcl::build-info
9.0.1+2047813f1c7748a2180beff1b1aedf6ea5f1cf0e6ef585c4493dfafafb1305c1.clang-1901.tommath-0103.zlib-0103
% winfo server .
Windows 32759.-1894671909 32759

An earlier magicsplat distribution, (tk 9.0.0)
% tcl::build-info
9.0.0+9af3ef7dce178628ecc559c50a8da0e9a4950963b26d0bfeb3eca67ea5ffdf95.msvc-1939.nmake
% winfo server .
Windows 0.1 0 Win64