diff options
author | Lukas Larsson <[email protected]> | 2018-06-04 10:24:01 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-06-04 10:24:01 +0200 |
commit | 6289c768ac43030b21cba66066d7a0a9df348ac6 (patch) | |
tree | 80456cf4498e24a4192df27011e631cb1eaa15e2 /lib/stdlib/src | |
parent | f4344965e7ceb71856277d74e25a9a871e5a0c9c (diff) | |
parent | 7786776b6dc68e3837fa2a384185e2a05f7f6e46 (diff) | |
download | otp-6289c768ac43030b21cba66066d7a0a9df348ac6.tar.gz otp-6289c768ac43030b21cba66066d7a0a9df348ac6.tar.bz2 otp-6289c768ac43030b21cba66066d7a0a9df348ac6.zip |
Merge branch 'lukas/stdlib/fix-io_o_request_raise/OTP-15101'
* lukas/stdlib/fix-io_o_request_raise/OTP-15101:
stdlib: Fix io:put_chars/2 error
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/io.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/stdlib/src/io.erl b/lib/stdlib/src/io.erl index f510f61e9f..5d5773c80c 100644 --- a/lib/stdlib/src/io.erl +++ b/lib/stdlib/src/io.erl @@ -86,7 +86,16 @@ put_chars(Chars) -> CharData :: unicode:chardata(). put_chars(Io, Chars) -> - o_request(Io, {put_chars,unicode,Chars}, put_chars). + put_chars(Io, unicode, Chars). + +%% This function is here to make the erlang:raise in o_request actually raise to +%% a valid function. +-spec put_chars(IoDevice, Encoding, CharData) -> 'ok' when + IoDevice :: device(), + Encoding :: unicode, + CharData :: unicode:chardata(). +put_chars(Io, Encoding, Chars) -> + o_request(Io, {put_chars,Encoding,Chars}, put_chars). -spec nl() -> 'ok'. |