* [gentoo-commits] repo/gentoo:master commit in: dev-erlang/fast_yaml/files/
@ 2019-09-07 7:22 Hanno Boeck
0 siblings, 0 replies; 2+ messages in thread
From: Hanno Boeck @ 2019-09-07 7:22 UTC (permalink / raw
To: gentoo-commits
commit: 03a29e709b821cb5a216719d1f2171fac0ee2c16
Author: Hanno <hanno <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 7 07:22:34 2019 +0000
Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org>
CommitDate: Sat Sep 7 07:22:34 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03a29e70
dev-erlang/fast_yaml: Add missing patch
Closes: https://bugs.gentoo.org/693342
Signed-off-by: Hanno Boeck <hanno <AT> gentoo.org>
Package-Manager: Portage-2.3.75, Repoman-2.3.17
...fast_yaml-1.0.20-dont-escape-simple-quote.patch | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/dev-erlang/fast_yaml/files/fast_yaml-1.0.20-dont-escape-simple-quote.patch b/dev-erlang/fast_yaml/files/fast_yaml-1.0.20-dont-escape-simple-quote.patch
new file mode 100644
index 00000000000..453374dbf17
--- /dev/null
+++ b/dev-erlang/fast_yaml/files/fast_yaml-1.0.20-dont-escape-simple-quote.patch
@@ -0,0 +1,31 @@
+From e789f68895f71b7ad31057177810ca0161bf790e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= <pchmielowski@process-one.net>
+Date: Tue, 6 Aug 2019 12:37:28 +0200
+Subject: [PATCH] Don't escape ' inside "", this is not valid yaml
+
+This fixes issue #13
+---
+ src/fast_yaml.erl | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/fast_yaml.erl b/src/fast_yaml.erl
+index db2be4a..11e453c 100644
+--- a/src/fast_yaml.erl
++++ b/src/fast_yaml.erl
+@@ -146,7 +146,6 @@ encode(B, _) when is_binary(B) ->
+ ($\s) -> [$\s]; % $\s == "space"
+ ($\t) -> [$\\, "t"]; % $\t == "tab"
+ ($\v) -> [$\\, "v"]; % $\v == "vertical tab"
+- ($') -> [$\\, $']; % $" == simple quote
+ ($") -> [$\\, $"]; % $" == double quote
+ ($\\) -> [$\\, $\\]; % $\\ == backslash
+ (C) -> C
+@@ -382,7 +381,7 @@ encode_decode_vertical_tab_test() ->
+
+ encode_decode_simple_quote_test() ->
+ FileName = filename:join(["..", "test", "temp_test.yml"]),
+- Binary = <<"\'\"\'">>,
++ Binary = <<"'\"'">>,
+ Encoded = encode([[{'Source', Binary}]]),
+ file:write_file(FileName, Encoded),
+ Decoded = decode_from_file(FileName, [plain_as_atom]),
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-erlang/fast_yaml/files/
@ 2020-11-08 20:10 Hanno Böck
0 siblings, 0 replies; 2+ messages in thread
From: Hanno Böck @ 2020-11-08 20:10 UTC (permalink / raw
To: gentoo-commits
commit: f99eb66d37aaf40c9cacefd8e95a3592a4517f26
Author: Hanno Böck <hanno <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 8 20:10:45 2020 +0000
Commit: Hanno Böck <hanno <AT> gentoo <DOT> org>
CommitDate: Sun Nov 8 20:10:45 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99eb66d
dev-erlang/fast_yaml: Remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/18191
Signed-off-by: Hanno Böck <hanno <AT> gentoo.org>
Package-Manager: Portage-3.0.9, Repoman-3.0.2
...fast_yaml-1.0.20-dont-escape-simple-quote.patch | 31 ----------------------
1 file changed, 31 deletions(-)
diff --git a/dev-erlang/fast_yaml/files/fast_yaml-1.0.20-dont-escape-simple-quote.patch b/dev-erlang/fast_yaml/files/fast_yaml-1.0.20-dont-escape-simple-quote.patch
deleted file mode 100644
index 453374dbf17..00000000000
--- a/dev-erlang/fast_yaml/files/fast_yaml-1.0.20-dont-escape-simple-quote.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From e789f68895f71b7ad31057177810ca0161bf790e Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= <pchmielowski@process-one.net>
-Date: Tue, 6 Aug 2019 12:37:28 +0200
-Subject: [PATCH] Don't escape ' inside "", this is not valid yaml
-
-This fixes issue #13
----
- src/fast_yaml.erl | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/src/fast_yaml.erl b/src/fast_yaml.erl
-index db2be4a..11e453c 100644
---- a/src/fast_yaml.erl
-+++ b/src/fast_yaml.erl
-@@ -146,7 +146,6 @@ encode(B, _) when is_binary(B) ->
- ($\s) -> [$\s]; % $\s == "space"
- ($\t) -> [$\\, "t"]; % $\t == "tab"
- ($\v) -> [$\\, "v"]; % $\v == "vertical tab"
-- ($') -> [$\\, $']; % $" == simple quote
- ($") -> [$\\, $"]; % $" == double quote
- ($\\) -> [$\\, $\\]; % $\\ == backslash
- (C) -> C
-@@ -382,7 +381,7 @@ encode_decode_vertical_tab_test() ->
-
- encode_decode_simple_quote_test() ->
- FileName = filename:join(["..", "test", "temp_test.yml"]),
-- Binary = <<"\'\"\'">>,
-+ Binary = <<"'\"'">>,
- Encoded = encode([[{'Source', Binary}]]),
- file:write_file(FileName, Encoded),
- Decoded = decode_from_file(FileName, [plain_as_atom]),
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-08 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-08 20:10 [gentoo-commits] repo/gentoo:master commit in: dev-erlang/fast_yaml/files/ Hanno Böck
-- strict thread matches above, loose matches on Subject: below --
2019-09-07 7:22 Hanno Boeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox