mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Fix crash when creating new MUC log file in non-ASCII lang (#3324)
This commit is contained in:
parent
80a502782b
commit
f652f8c8d6
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ get_dateweek(Date, Lang) ->
|
||||||
11 -> tr(Lang, ?T("November"));
|
11 -> tr(Lang, ?T("November"));
|
||||||
12 -> tr(Lang, ?T("December"))
|
12 -> tr(Lang, ?T("December"))
|
||||||
end,
|
end,
|
||||||
list_to_binary(
|
unicode:characters_to_binary(
|
||||||
case Lang of
|
case Lang of
|
||||||
<<"en">> ->
|
<<"en">> ->
|
||||||
io_lib:format("~ts, ~ts ~w, ~w", [Weekday, Month, D, Y]);
|
io_lib:format("~ts, ~ts ~w, ~w", [Weekday, Month, D, Y]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue