diff options
author | Hans Bolinder <[email protected]> | 2019-06-12 11:54:53 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2019-08-20 09:33:26 +0200 |
commit | 6987b6fcea8e3627382cb498ab888dde95726f19 (patch) | |
tree | 593cb3834e6af232fd1db64d52e0c81f96f9b4e6 /lib/sasl | |
parent | 2dcf085df9dd9a215ce85ab55b666417897452d6 (diff) | |
download | otp-6987b6fcea8e3627382cb498ab888dde95726f19.tar.gz otp-6987b6fcea8e3627382cb498ab888dde95726f19.tar.bz2 otp-6987b6fcea8e3627382cb498ab888dde95726f19.zip |
sasl: Use encoding when reading terms
Diffstat (limited to 'lib/sasl')
-rw-r--r-- | lib/sasl/src/systools_lib.erl | 6 |
1 files 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 |