summaryrefslogtreecommitdiff
path: root/doc/ref/api-io.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-09-07 17:42:53 +0200
committerLudovic Courtès <ludo@gnu.org>2022-09-07 18:00:30 +0200
commit3cd488150416cac7bddbc270108545330c1fea4f (patch)
treed2ada48ed9530eb8afa69c1bb56a91c711bd97a0 /doc/ref/api-io.texi
parent61d8dab8eafd498306ce618582aab37497df77b4 (diff)
downloadguile-3cd488150416cac7bddbc270108545330c1fea4f.tar.gz
doc: Add documentation of the "b" flag to 'open-file'.
* doc/ref/api-io.texi (File Ports): Add documentation of the "b" flag, taken from the 'open-file' docstring.
Diffstat (limited to 'doc/ref/api-io.texi')
-rw-r--r--doc/ref/api-io.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index 87d4af496..93bbca5ba 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -989,6 +989,10 @@ The "append mode" can be turned off while the port is in use
The following additional characters can be appended:
@table @samp
+@item b
+Open the underlying file in binary mode, if supported by the system.
+Also, open the file using the binary-compatible character encoding
+"ISO-8859-1", ignoring the default port encoding.
@item +
Open the port for both input and output. E.g., @code{r+}: open
an existing file for both input and output.