Artifacts Associated With Ticket 219185
Ticket change [adf0f9b1f1] (rid 101543) by nobody on 2000-10-26 05:03:05:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2276 Bug Version: 8.1.1 SubmitDate: '1999-06-22' LastModified: '2000-09-07' Severity: MED Status: Assigned Submitter: techsupp ChangedBy: hobbs OS: All Windows Machine: X86 FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Peter Hardie Comments: An optional "-binary" argument has been added to the dde request command to force it to receive binary data rather than a null-terminated string. I don't think there is a reliable way for the program to tell whether the returned data are binary or a string and so the user must tell the program via the optional argument. Users should be aware that it appears that the windows DDE returns a data length of 28 for any data of that length or shorter (even when it is returning a string). They must, therefore, still have some reliable way of determining where the end of the data occurs. In the sample script included at the above URL, the binary data returned by Netscape's WWW_ListWindows topic are terminated by a double word zero (where netscape's double word is 32 bits) and thus even if there are fewer than 6 windows open, the end of the data can be reliably detected. Pete [email protected] DesiredBehavior: In V1.0 of TCL's DDE package, the "dde request" command cannot handle the case where binary data are returned instead of a null-terminated string. Patch: Two patch versions are available at this URL along with a readme.txt and a small sample script to test the patch once it is installed. http://members.home.net/el.supremo/tcl_files/reqbinary/ PatchFiles: tclwindde.c From Bonnet: Tcl seems to always send the string rep of an object, whatever its internal rep may be (DdeServerProc in win/tclWinDde.c). The result of an encoding converted string is a byte array that holds the converted string, however what is sent is the UTF-8 string. So Tcl should check for the internal rep to see whether it is a byte array and use it instead. On Windows NT, Tcl could also use Unicode instead of ANSI. I believe the same is true when sending data to Tcl: data is sent as ANSI, but Tcl expects UTF-8. Tcl-to-Tcl communication works OK because both expect UTF-8. See also: http://www.deja.com/=dnc/getdoc.xp?AN=666313424 -- 09/07/2000 hobbs - foundin initialized to: "final: 8.1.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "81. Bundled Packages"
- title initialized to:
dde only handles UTF-8 data (-binary patch available)
- type initialized to: "RFE"
Ticket change [e2db881ec5] (rid 87693) by dkf on 2000-11-23 22:46:57:
- subsystem changed to: "90. FAQs"
Ticket change [fda5f35e13] (rid 108438) by dkf on 2001-02-07 22:56:30:
- subsystem changed to: "28. dde Package"
Ticket change [06e1018b01] (rid 89284) by kennykb on 2001-02-27 05:58:16:
- assignee changed to: "kennykb"
- closedate changed to: "2001-02-26T22:58:16"
- closer changed to: "kennykb"
Ticket change [7e20a11829] (rid 97354) by kennykb on 2001-02-27 06:02:36:
- foundin changed to: "obsolete: 8.4a3"
Ticket change [3abbdef110] (rid 112610) by dgp on 2001-04-04 03:46:15:
- subsystem changed to: "28. dde Package"
Ticket change [af1fda4b5e] (rid 97751) by kennykb on 2003-03-24 04:23:03:
- assignee changed to: "patthoyts"
Ticket change [cf852fbe92] (rid 112991) by patthoyts on 2008-11-28 07:30:16:
- icomment:
IP - Comment Removed: 92.238.221.8
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [42eca719e8] (rid 116458) by patthoyts on 2008-11-28 07:30:27:
- is_private changed to: "1"
Ticket change [3cc52c6007] (rid 120965) by dkf on 2009-07-29 17:25:45:
- icomment:
IP - Comment Removed: 130.88.1.31
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [b30d14db5a] (rid 98449) by dkf on 2009-07-29 17:26:18:
- is_private changed to: "0"
Ticket change [4b078ae4da] (rid 126627) by nijtmans on 2012-05-11 17:39:21:
- assignee changed to: "nijtmans"
- closedate changed to: "2012-05-11T10:39:21"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Duplicate of #227482, which is long fixed.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"