summaryrefslogtreecommitdiff
path: root/doc/ref/api-io.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2021-03-12 22:06:56 +0100
committerAndy Wingo <wingo@pobox.com>2021-03-12 22:08:16 +0100
commite30ee9047845751615ca6726e22b67aa9b38e187 (patch)
tree29a997fb7f97a7fae49a08b634e74a6ab2fac87a /doc/ref/api-io.texi
parent1c472fef54d1f9a632ec8f91ea6d00ccf55a026a (diff)
downloadguile-e30ee9047845751615ca6726e22b67aa9b38e187.tar.gz
Revert "Handle CRLF and Unicode line endings in read-line"
This reverts commit 0f983e3db0c43ad7c89f57ea84f792ede373ba0c. After discussing with Mike we are going to punt the read-line changes for now. Open the port in O_TEXT mode if you want to chomp the CR in CFLF sequences.
Diffstat (limited to 'doc/ref/api-io.texi')
-rw-r--r--doc/ref/api-io.texi10
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index 2345f043c..777f282e9 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -755,10 +755,8 @@ a specified set of characters.
@deffn {Scheme Procedure} read-line [port] [handle-delim]
Return a line of text from @var{port} if specified, otherwise from the
-value returned by @code{(current-input-port)}. Under Unix, a line of
-text is terminated by the first end-of-line character or by end-of-file.
-The end-of-line characters handled are newline, carriage return plus
-newline, or the Unicode line or paragraph separators.
+value returned by @code{(current-input-port)}. Under Unix, a line of text
+is terminated by the first end-of-line character or by end-of-file.
If @var{handle-delim} is specified, it should be one of the following
symbols:
@@ -773,9 +771,7 @@ Append the terminating delimiter (if any) to the returned string.
Push the terminating delimiter (if any) back on to the port.
@item split
Return a pair containing the string read from the port and the
-terminating delimiter or end-of-file object. The delimiter will either
-be a single character for newline or the Unicode line or paragraph
-separators, or it will be the string @code{"\r\n"}.
+terminating delimiter or end-of-file object.
@end table
@end deffn