aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_log.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2020-07-10 11:40:24 +0200
committerBadlop <badlop@process-one.net>2020-07-10 12:03:12 +0200
commitf652f8c8d6d45da7b2e9544405500b29e5beb50e (patch)
treea31342d1c17a64bb7e718d619a72507417ea4efb /src/mod_muc_log.erl
parentUse the same leading sentence than other sections (diff)
Fix crash when creating new MUC log file in non-ASCII lang (#3324)
Diffstat (limited to '')
-rw-r--r--src/mod_muc_log.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_log.erl b/src/mod_muc_log.erl
index 4f76e864b..16b6d5fcc 100644
--- a/src/mod_muc_log.erl
+++ b/src/mod_muc_log.erl
@@ -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]);