25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01: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) ->
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 ->