[erlang-questions] file:consult {error, {1, file_io_server, invalid_unicode}} with pre-r17 files in r17
Russell Brown
russelldb@REDACTED
Thu Apr 23 11:20:07 CEST 2015
Hi,
With the release of r17, certain files that were written in earlier versions of erlang are not `file:consult/1`-able in r17.
Here is a simple module that shows the issue: https://gist.github.com/russelldb/4f8fe205bd5a5a1cd136
If I change line 13 to
io_lib:format(“~w.", [Term]),
Everything works just fine. However, legacy files were written in r16 using
io_lib:format("~p.", [Term]),
And I’d like to be able to read them into erlang terms in r17, has someone already tackled this?
Many thanks in advance for your suggestions
Russell
More information about the erlang-questions
mailing list