summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-24 13:14:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-24 13:14:30 (GMT)
commit45e7356eb3f29d10ee07304aeb67fd0610cdc514 (patch)
tree64c9a4ce67188a1a349c798dd3775ec00c3c0251 /doc
parentc50438f01b87127726135568d65adb6658403340 (diff)
parenteb922c8eb52aaaaf9ac4f63fd1f0a0789907c277 (diff)
downloadtcl-45e7356eb3f29d10ee07304aeb67fd0610cdc514.zip
tcl-45e7356eb3f29d10ee07304aeb67fd0610cdc514.tar.gz
tcl-45e7356eb3f29d10ee07304aeb67fd0610cdc514.tar.bz2
Add "chan isbinary" for checking whether a _channel_ is binary
Diffstat (limited to 'doc')
-rw-r--r--doc/chan.n8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/chan.n b/doc/chan.n
index b9f9e75..358202b 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?