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

Recover ec6c58a which was reverted in 100827e (thanks to Alexey Shchepin)

This commit is contained in:
Badlop 2016-06-10 13:18:32 +02:00
parent 0e61e57ed9
commit 34cf693231

View File

@ -472,7 +472,7 @@ format_arg(undefined, binary) -> <<>>;
format_arg(undefined, string) -> "";
format_arg(Arg, Format) ->
?ERROR_MSG("don't know how to format Arg ~p for format ~p", [Arg, Format]),
error.
throw({error_formatting_argument, Arg, Format}).
process_unicode_codepoints(Str) ->
iolist_to_binary(lists:map(fun(X) when X > 255 -> unicode:characters_to_binary([X]);