Tcl_GetInterpPath : minor bug in result affectation
Closed / Fixed1997860fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 42 days ago
Descriptionplain2008-06-19 13:31:45
As far as I checked, Tcl_GetInterpPath appends the slave's path to the current master's result, instead of setting the master's result. The following code (sorry for mixing Qt, but eh, it should be easy to understand !) : qDebug () << Tcl_GetStringResult A: "<< Tcl_GetStringResult(_interpMaster); Tcl_GetInterpPath(_interpMaster, _interpSlave); qDebug () << Tcl_GetStringResult B: "<< Tcl_GetStringResult(_interpMaster); Tcl_GetInterpPath(_interpMaster, _interpSlave); qDebug () << Tcl_GetStringResult C: "<< Tcl_GetStringResult(_interpMaster); produces the output : Tcl_GetStringResult A: Tcl_GetStringResult B: slaveName Tcl_GetStringResult C: slaveName slaveName instead of : Tcl_GetStringResult A: Tcl_GetStringResult B: slaveName Tcl_GetStringResult C: slaveName Just a minor bug, but the behavior is not conform to what doc says ! Best-
serhiy.storchakawiki2026-10-21 10:03:36
Fixed in 8.6.0 by [b074e043df]: Tcl_GetInterpPath now resets the result before building the path.
serhiy.storchaka Ticket [1997860fff]: 3 changes
[History diff]2026-10-22 17:19:30
Log in (anonymous is fine) to add a comment.