Commit c6c9ec49 authored by Philipp Huebner's avatar Philipp Huebner

New upstream version 1.0.17

parent b2cef39a
# Version 1.0.17
* Updating p1_utils to version 1.0.13.
# Version 1.0.16
* Updating p1_utils to version 6ff85e8.
* Add handling of unicode string
# Version 1.0.15
* Updating p1_utils to version 1.0.12.
......
......@@ -24,7 +24,7 @@
{port_env, [{"CFLAGS", "$CFLAGS"}, {"LDFLAGS", "$LDFLAGS -lyaml"}]}.
{port_specs, [{"priv/lib/fast_yaml.so", ["c_src/fast_yaml.c"]}]}.
{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.12"}}}]}.
{deps, [{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.13"}}}]}.
{clean_files, ["c_src/fast_yaml.gcda", "c_src/fast_yaml.gcno"]}.
......
......@@ -23,7 +23,7 @@
{application, fast_yaml,
[{description, "Fast YAML native library for Erlang / Elixir"},
{vsn, "1.0.15"},
{vsn, "1.0.17"},
{modules, []},
{registered, []},
{applications, [kernel, stdlib]},
......
......@@ -135,7 +135,7 @@ encode(B, _) when is_binary(B) ->
lists:map(
fun($") -> [$\\, $"];
(C) -> C
end, binary_to_list(B)),
end, unicode:characters_to_list(B)),
$"].
encode_pair({K, V}, N) ->
......@@ -236,4 +236,14 @@ decode_test4_test() ->
"Pz7Y6OjuDg4J+fn5OTk6enp\n56enmleECcgggoBADs=mZmE\n">>}]]},
decode_from_file(FileName)).
encode_test1_test() ->
?assertEqual(
list_to_binary(encode(<<"a">>)),
<<"\"a\"">>).
encode_unicode_test1_test() ->
?assertEqual(
unicode:characters_to_binary(encode(<<"☃"/utf8>>)),
<<"\"\""/utf8>>).
-endif.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment