summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-21 09:30:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-21 09:30:15 (GMT)
commit5c63c6eb30dfa81bbcc4c5bc99270196cdb1ed08 (patch)
treeb02bb39111ae2ce8f56b1b96cbdd4570c64c1541
parent3766d5bd6891d6cd0dda171a9e56d6ae69a7778f (diff)
parent43044c4c6faa38551b3d808f7be2675b73fd67e3 (diff)
downloadtcl-5c63c6eb30dfa81bbcc4c5bc99270196cdb1ed08.zip
tcl-5c63c6eb30dfa81bbcc4c5bc99270196cdb1ed08.tar.gz
tcl-5c63c6eb30dfa81bbcc4c5bc99270196cdb1ed08.tar.bz2
Fix examples, using "-translation binary" correctly in stead of "-encoding binary"
-rw-r--r--doc/chan.n6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/chan.n b/doc/chan.n
index 7191121..c08c7e3 100644
--- a/doc/chan.n
+++ b/doc/chan.n
@@ -879,7 +879,7 @@ proc GetData {chan} {
}
}
-chan configure $chan -blocking 0 -encoding binary
+chan configure $chan -blocking 0 -translation binary
\fBchan event\fR $chan readable [list GetData $chan]
.CE
.PP
@@ -1038,7 +1038,7 @@ file384b6a8
-errorinfo {...} -errorline 1
% chan tell $f
0
-% chan configure $f -encoding binary
+% chan configure $f -translation binary
% chan gets $f
AÃB
.CE
@@ -1062,7 +1062,7 @@ file35a65a0
-errorinfo {...} -errorline 1
% chan tell $f
1
-% chan configure $f -encoding binary
+% chan configure $f -translation binary
% chan read $f
ÃB
% chan close $f