Tcl Source Code

Artifact [a8e8bf82e5]
Login

Artifact a8e8bf82e5d97a6aed70a43ce57423766cdd9864:

Attachment "dde.n.patch" to ticket [2445648fff] added by oehhar 2008-12-18 23:30:04.
--- dde_ori.n	2008-10-17 12:22:25.000000000 +0200
+++ dde.n	2008-12-18 17:19:14.000000000 +0100
@@ -19,9 +19,9 @@
 .sp
 \fBdde servername\fR ?\fB\-force\fR? ?\fB\-handler \fIproc\fR? ?\fB\-\|\-\fR? ?\fItopic\fR?
 .sp
-\fBdde execute\fR ?\fB\-async\fR? \fIservice topic data\fR
+\fBdde execute\fR ?\fB\-async\fR? ?\fB\-binray\fR? \fIservice topic data\fR
 .sp
-\fBdde poke\fR \fIservice topic item data\fR
+\fBdde poke\fR ?\fB\-binray\fR? \fIservice topic item data\fR
 .sp
 \fBdde request\fR ?\fB\-binary\fR? \fIservice topic item\fR
 .sp
@@ -71,7 +71,7 @@
 call.
 .RE
 .TP
-\fBdde execute\fR ?\fB\-async\fR? \fIservice topic data\fR
+\fBdde execute\fR ?\fB\-async\fR? ?\fB\-binray\fR? \fIservice topic data\fR
 .
 \fBdde execute\fR takes the \fIdata\fR and sends it to the server indicated
 by \fIservice\fR with the topic indicated by \fItopic\fR. Typically,
@@ -82,8 +82,10 @@
 asynchronous invocation.  The command returns an error message if the
 script did not run, unless the \fB\-async\fR flag was used, in which case
 the command returns immediately with no error.
+The ?\fB\-binray\fR? option treats \fIdata\fR as binary data, otherwise an utf-8 string is sent.
+Combining \fB-binary\fR with the result  of \fBencoding convertto\fR may be used to send data in arbitrary encodings.
 .TP
-\fBdde poke \fIservice topic item data\fR
+\fBdde poke ?\fB\-binray\fR? \fIservice topic item data\fR
 .
 \fBdde poke\fR passes the \fIdata\fR to the server indicated by
 \fIservice\fR using the \fItopic\fR and \fIitem\fR specified.  Typically,
@@ -92,6 +94,7 @@
 on.  The \fIitem\fR is also application specific and is often not used, but
 it must always be non-null.  The \fIdata\fR field is given to the remote
 application.
+The ?\fB\-binray\fR? option treats \fIdata\fR as binary data, otherwise an utf-8 string is sent.
 .TP
 \fBdde request\fR ?\fB\-binary\fR? \fIservice topic item\fR
 .