From 6f7ab48afd4a843c51ecaa59d29d7991cdac90aa Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Thu, 13 Jun 2019 13:20:37 +0200 Subject: stdlib (doc): Do not mention old requests --- lib/stdlib/doc/src/io_protocol.xml | 43 +------------------------------------- 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/lib/stdlib/doc/src/io_protocol.xml b/lib/stdlib/doc/src/io_protocol.xml index 84b5f62c7f..f05c358866 100644 --- a/lib/stdlib/doc/src/io_protocol.xml +++ b/lib/stdlib/doc/src/io_protocol.xml @@ -5,7 +5,7 @@
1999 - 2016 + 2019 Ericsson AB. All Rights Reserved. @@ -168,16 +168,6 @@ ok returns it "as is". -

For backward compatibility, the following Requests are also to be - handled by an I/O server (they are not to be present after - Erlang/OTP R15B):

- -
-{put_chars, Characters}
-{put_chars, Module, Function, Args}
- -

These are to behave as {put_chars, latin1, Characters} and - {put_chars, latin1, Module, Function, Args}, respectively.

@@ -332,19 +322,6 @@ eof -

For backward compatibility, the following Requests are also to be - handled by an I/O server (they are not to be present after - Erlang/OTP R15B):

- -
-{get_until, Prompt, Module, Function, ExtraArgs}
-{get_chars, Prompt, N}
-{get_line, Prompt}
- -

These are to behave as - {get_until, latin1, Prompt, Module, Function, ExtraArgs}, - {get_chars, latin1, Prompt, N}, and - {get_line, latin1, Prompt}, respectively.

@@ -637,24 +614,6 @@ request({requests, Reqs}, State) -> function applying the requests in the list one after another, returning the last result.

-

We need to handle backward compatibility and the - file module (which - uses the old requests until backward compatibility with pre-R13 nodes is - no longer needed). Notice that the I/O server does not work with a simple - file:write/2 if these are not added:

- - -request({put_chars,Chars}, State) -> - request({put_chars,latin1,Chars}, State); -request({put_chars,M,F,As}, State) -> - request({put_chars,latin1,M,F,As}, State); -request({get_chars,Prompt,N}, State) -> - request({get_chars,latin1,Prompt,N}, State); -request({get_line,Prompt}, State) -> - request({get_line,latin1,Prompt}, State); -request({get_until, Prompt,M,F,As}, State) -> - request({get_until,latin1,Prompt,M,F,As}, State); -

{error, request} must be returned if the request is not recognized:

-- cgit v1.2.3