File 2926-stdlib-Allow-any-Key-Value-in-io-setopts.patch of Package erlang
From 707c8aa582fb55fb6a6bc3bcecbfbf86191541c5 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Thu, 12 May 2022 13:59:03 +0200
Subject: [PATCH 06/34] stdlib: Allow any Key/Value in io:setopts
The protocol replies enotsup for any unkown, so we can
send unknown terms. This is useful when we want to be able
to extend the options allowed to be sent.
---
lib/stdlib/src/io.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/stdlib/src/io.erl b/lib/stdlib/src/io.erl
index 18f6ef3dde..b0c2a2e586 100644
--- a/lib/stdlib/src/io.erl
+++ b/lib/stdlib/src/io.erl
@@ -213,7 +213,8 @@ get_password(Io) ->
-type opt_pair() :: {'binary', boolean()}
| {'echo', boolean()}
| {'expand_fun', expand_fun()}
- | {'encoding', encoding()}.
+ | {'encoding', encoding()}
+ | {atom(), term()}.
-spec getopts() -> [opt_pair()] | {'error', Reason} when
Reason :: term().
--
2.35.3