summaryrefslogtreecommitdiffstats
path: root/doc/chan.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-28 16:10:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-28 16:10:01 (GMT)
commit0015fdd61a457d1292bd92f62ccdfad6bebb8e8a (patch)
treebdeb3a4349df7cbb36253f56248ae2ecc3f21ef7 /doc/chan.n
parentfe200c4760cb4f5b020a79716aec8f79e6fae099 (diff)
downloadtcl-0015fdd61a457d1292bd92f62ccdfad6bebb8e8a.zip
tcl-0015fdd61a457d1292bd92f62ccdfad6bebb8e8a.tar.gz
tcl-0015fdd61a457d1292bd92f62ccdfad6bebb8e8a.tar.bz2
Add "chan isbinary" command. Part of TIP #699, meant for 8.7
Diffstat (limited to 'doc/chan.n')
-rw-r--r--doc/chan.n8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/chan.n b/doc/chan.n
index 6387bfb..d6cde99 100644
--- a/doc/chan.n
+++ b/doc/chan.n
@@ -540,6 +540,14 @@ errors are encountered in the channel input data. The file pointer remains
unchanged and it is possible to introspect, and in some cases recover, by
changing the encoding in use. See \fBENCODING ERROR EXAMPLES\fR later.
.RE
+.\" METHOD: isbinary
+.TP
+\fBchan isbinary \fIchannel\fR
+.
+Test whether the channel called \fIchannel\fR is a binary channel,
+returning 1 if it is and, and 0 otherwise. A binary channel is
+a channel with iso8859-1 encoding, -eofchar set to {} and
+-translation set to cr.
.\" METHOD: names
.TP
\fBchan names\fR ?\fIpattern\fR?