diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-23 20:26:43 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-23 20:26:43 (GMT) |
commit | eb922c8eb52aaaaf9ac4f63fd1f0a0789907c277 (patch) | |
tree | dfd06a05f08b68807caab6788a30b1ff48aa9840 /doc/chan.n | |
parent | 01bcdd015088be3e7a9ea7d76a012c34473b354b (diff) | |
download | tcl-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.n | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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? |