summaryrefslogtreecommitdiffstats
path: root/doc/chan.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-23 20:26:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-23 20:26:43 (GMT)
commiteb922c8eb52aaaaf9ac4f63fd1f0a0789907c277 (patch)
treedfd06a05f08b68807caab6788a30b1ff48aa9840 /doc/chan.n
parent01bcdd015088be3e7a9ea7d76a012c34473b354b (diff)
downloadtcl-eb922c8eb52aaaaf9ac4f63fd1f0a0789907c277.zip
tcl-eb922c8eb52aaaaf9ac4f63fd1f0a0789907c277.tar.gz
tcl-eb922c8eb52aaaaf9ac4f63fd1f0a0789907c277.tar.bz2
Add "chan isbinary" for checking whether a _channel_ is binary.
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 c08c7e3..8c35fee 100644
--- a/doc/chan.n
+++ b/doc/chan.n
@@ -527,6 +527,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?