25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix crash when creating new MUC log file in non-ASCII lang (#3324)

This commit is contained in:
Badlop 2020-07-10 11:40:24 +02:00
parent 80a502782b
commit f652f8c8d6

View File

@ -488,7 +488,7 @@ get_dateweek(Date, Lang) ->
11 -> tr(Lang, ?T("November"));
12 -> tr(Lang, ?T("December"))
end,
list_to_binary(
unicode:characters_to_binary(
case Lang of
<<"en">> ->
io_lib:format("~ts, ~ts ~w, ~w", [Weekday, Month, D, Y]);