File 0151-escript-call-io-format-2-instead-of-io-fwrite-2.patch of Package erlang
From e9318945f91d96a384e6ac50d77c5cc2065a6cb9 Mon Sep 17 00:00:00 2001
From: Mikael Pettersson <mikpelinux@gmail.com>
Date: Sat, 12 Sep 2020 18:25:57 +0200
Subject: [PATCH 1/9] escript: call io:format/2 instead of io:fwrite/2
fwrite is just an alias for format
---
lib/stdlib/src/escript.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/stdlib/src/escript.erl b/lib/stdlib/src/escript.erl
index 0e120174fe..d0129095ff 100644
--- a/lib/stdlib/src/escript.erl
+++ b/lib/stdlib/src/escript.erl
@@ -802,10 +802,10 @@ report_errors(Errors) ->
Errors).
list_errors(F, [{Line,Mod,E}|Es]) ->
- io:fwrite("~ts:~w: ~ts\n", [F,Line,Mod:format_error(E)]),
+ io:format("~ts:~w: ~ts\n", [F,Line,Mod:format_error(E)]),
list_errors(F, Es);
list_errors(F, [{Mod,E}|Es]) ->
- io:fwrite("~ts: ~ts\n", [F,Mod:format_error(E)]),
+ io:format("~ts: ~ts\n", [F,Mod:format_error(E)]),
list_errors(F, Es);
list_errors(_F, []) -> ok.
--
2.26.2