25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Fix unicode string formatting

Fixes #3066
This commit is contained in:
Evgeny Khramtsov 2019-11-05 17:51:12 +03:00
parent a420eb1f72
commit 3a46612d88

View File

@ -286,7 +286,7 @@ suffix(B1, B2) ->
-spec format(io:format(), list()) -> binary().
format(Format, Args) ->
iolist_to_binary(io_lib:format(Format, Args)).
unicode:characters_to_binary(io_lib:format(Format, Args)).
-spec sha(iodata()) -> binary().