diff options
author | Hans Bolinder <[email protected]> | 2019-06-12 11:59:22 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2019-08-20 09:33:26 +0200 |
commit | fcb69bc48b69fd73f0838309652a176c56d61f8f (patch) | |
tree | 0e044b38fd79b034587b1c411348ac3a24c07263 /lib/snmp/src/misc/snmp_conf.erl | |
parent | 6987b6fcea8e3627382cb498ab888dde95726f19 (diff) | |
download | otp-fcb69bc48b69fd73f0838309652a176c56d61f8f.tar.gz otp-fcb69bc48b69fd73f0838309652a176c56d61f8f.tar.bz2 otp-fcb69bc48b69fd73f0838309652a176c56d61f8f.zip |
snmp: Update old format I/O-request
Diffstat (limited to 'lib/snmp/src/misc/snmp_conf.erl')
-rw-r--r-- | lib/snmp/src/misc/snmp_conf.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/snmp/src/misc/snmp_conf.erl b/lib/snmp/src/misc/snmp_conf.erl index d73291764d..e8a541f490 100644 --- a/lib/snmp/src/misc/snmp_conf.erl +++ b/lib/snmp/src/misc/snmp_conf.erl @@ -257,7 +257,8 @@ open_file(File) -> end. do_read(Io, Prompt, StartLine) -> - case io:request(Io, {get_until,Prompt,erl_scan,tokens,[StartLine]}) of + Enc = latin1, + case io:request(Io, {get_until,Enc,Prompt,erl_scan,tokens,[StartLine]}) of {ok, Toks, EndLine} -> case erl_parse:parse_term(Toks) of {ok, Term} -> |