[dde request ...] does not return binary data correctly.
Closed / Fixed227482ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2001-01-04 05:42:38
For example:
% set r [dde request NETSCAPE WWW_ListWindows { }]
% string length $r
1
WWW_ListWindows returns an array of dwords, indicating Netscape's window IDs. Thus, $r should definitely be a multiple of 4.
To fix this in 8.4a2:
Change line 1066 of tclWinDde.c from
returnObjPtr = Tcl_NewStringObj(dataString, -1);
to
returnObjPtr = Tcl_NewStringObj(dataString, dataLength);
dkf Ticket [227482ffff]: 1 change
[History diff]2001-02-07 22:54:06
kennykb Ticket [227482ffff]: 3 changes
[History diff]2001-02-27 05:58:18
hobbsplain2001-08-23 06:58:42
Logged In: YES user_id=72656 This solution isn't quite correct (doesn't pass tests). The problem is that it messes up returning string data by including the terminating null. I've changed it to add a - binary option which explicitly allows the user control over this in dde requests. In 8.4a4cvs.
Log in (anonymous is fine) to add a comment.