File 2617-sasl-Use-encoding-when-reading-terms.patch of Package erlang

From 6987b6fcea8e3627382cb498ab888dde95726f19 Mon Sep 17 00:00:00 2001
From: Hans Bolinder <hasse@erlang.org>
Date: Wed, 12 Jun 2019 11:54:53 +0200
Subject: [PATCH 07/10] sasl: Use encoding when reading terms

---
 lib/sasl/src/systools_lib.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/sasl/src/systools_lib.erl b/lib/sasl/src/systools_lib.erl
index dd97aeff08..f5489e7900 100644
--- a/lib/sasl/src/systools_lib.erl
+++ b/lib/sasl/src/systools_lib.erl
@@ -1,7 +1,7 @@
 %%
 %% %CopyrightBegin%
 %% 
-%% Copyright Ericsson AB 1996-2016. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2019. All Rights Reserved.
 %% 
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
@@ -63,8 +63,8 @@ read_term(File) ->
     end.
 
 read_term_from_stream(Stream, File) ->
-    _ = epp:set_encoding(Stream),
-    R = io:request(Stream, {get_until,'',erl_scan,tokens,[1]}),
+    Encoding = epp:set_encoding(Stream),
+    R = io:request(Stream, {get_until,Encoding,'',erl_scan,tokens,[1]}),
     case R of
 	{ok,Toks,_EndLine} ->
 	    case erl_parse:parse_term(Toks) of
-- 
2.16.4

openSUSE Build Service is sponsored by