Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-05-18
10:36 • Closed ticket [1c6f6503d4]: Fix auto_execok on Windows plus 5 other changes artifact: b2208305f5 user: apnadkarni
10:36 • Ticket [1c6f6503d4]: 3 changes artifact: 5bacf943c7 user: apnadkarni
2017-05-24
08:40 • Ticket [1c6f6503d4]: 4 changes artifact: 15454a4b33 user: jan.nijtmans
07:37 • Ticket [1c6f6503d4]: 3 changes artifact: cd71888cbf user: danckaert
07:34 • Add attachment winsearch.patch to ticket [1c6f6503d4] artifact: 1b80b0e2ce user: danckaert
07:32 • Delete attachment "patch" from ticket [1c6f6503d4] artifact: 113dabc6cc user: danckaert
2016-03-09
16:28 • Add attachment patch to ticket [1c6f6503d4] artifact: ea0ba3a037 user: danckaert
16:26 • New ticket [1c6f6503d4] Fix auto_execok on Windows. artifact: fc0571ce13 user: danckaert

Fix auto_execok on Windows

Closed / Fixed1c6f6503d4fb512d4d3d6c9cd1cfa50d34c5308cCreated 11 years agoUpdated 199 days ago
Descriptionwiki2016-03-09 16:26:57
There are several problems with auto_execok on Windows. See for example these tickets: 4ab2ccc4a2, 1244733, e21fc32c2a. Another issue is that the search path constructed by [auto_execok] is quite ad-hoc, while the path used by [exec] may be dependent on the OS version and even on registry values, as documented on http://msdn.microsoft.com/en-us/library/windows/desktop/aa365527(v=vs.85).aspx.

All this can be solved by aligning the search procedure of [auto_execok] with [exec]. To do this, a small helper proc is needed to do call the appropriate C functions from [auto_execok].

I'm attaching a patch to do this. Note that I didn't know where precisely to declare and create the helper functions, so this may require some review.

danckaertwiki2017-05-24 07:37:51

I've replaced the patch with an updated version. Previous one did not always return a list.

jan.nijtmansplain2017-05-24 08:40:32
I like this solution! Not enough severity to rush it into 8.6.7, but I'll have a closer look soon.
apnadkarnimarkdown2026-05-18 10:36:17

Fixed in TIP 753 commit de961e8d.

apnadkarni Closed ticket [1c6f6503d4]. [History diff]2026-05-18 10:36:37
Log in (anonymous is fine) to add a comment.