aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-11-05 17:51:12 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-11-05 17:51:12 +0300
commit3a46612d883e89eaaafc41c42e98bff6253e5cd1 (patch)
tree2c783ce721b621e178a7d88032e70107fd68fe75 /src
parentDon't overflow 32-bit signed integer in offline tests (diff)
Fix unicode string formatting
Fixes #3066
Diffstat (limited to 'src')
-rw-r--r--src/str.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/str.erl b/src/str.erl
index 07a5d09d5..16f866972 100644
--- a/src/str.erl
+++ b/src/str.erl
@@ -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().