From 7af7b7d3f0c4bf399fb7db54c38090c8d1a25873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 15 Apr 2014 16:58:06 +0200 Subject: [PATCH] Fix compilation on pre-R17 --- src/translate.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/translate.erl b/src/translate.erl index 758784f18..846b33e06 100644 --- a/src/translate.erl +++ b/src/translate.erl @@ -78,7 +78,7 @@ load_dir(Dir) -> load_file(Lang, File) -> case file:open(File, [read]) of {ok, Fd} -> - epp:set_encoding(Fd, latin1), + io:setopts(Fd, [{encoding,latin1}]), load_file_loop(Fd, 1, File, Lang), file:close(Fd); Error ->