24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02:00

Fix compilation on pre-R17

This commit is contained in:
Paweł Chmielowski 2014-04-15 16:58:06 +02:00 committed by Badlop
parent d97b4fd9ca
commit 7af7b7d3f0

View File

@ -78,7 +78,7 @@ load_dir(Dir) ->
load_file(Lang, File) -> load_file(Lang, File) ->
case file:open(File, [read]) of case file:open(File, [read]) of
{ok, Fd} -> {ok, Fd} ->
epp:set_encoding(Fd, latin1), io:setopts(Fd, [{encoding,latin1}]),
load_file_loop(Fd, 1, File, Lang), load_file_loop(Fd, 1, File, Lang),
file:close(Fd); file:close(Fd);
Error -> Error ->