From f9d0b0e720e9d66858c179f0bea96db776b7af05 Mon Sep 17 00:00:00 2001 From: zhangruifang2020 Date: Fri, 2 Aug 2024 09:49:28 +0800 Subject: [PATCH] backport patch from upstream --- ...dated-with-escaping-characters-a-b-v.patch | 25 +++++++++++++++++++ libconfig.spec | 8 ++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 backport-updated-with-escaping-characters-a-b-v.patch diff --git a/backport-updated-with-escaping-characters-a-b-v.patch b/backport-updated-with-escaping-characters-a-b-v.patch new file mode 100644 index 0000000..75aa093 --- /dev/null +++ b/backport-updated-with-escaping-characters-a-b-v.patch @@ -0,0 +1,25 @@ +From bd56e11461a7f51ba4f540132ad465c8ba4734aa Mon Sep 17 00:00:00 2001 +From: Francesco Emanuele D'Agostino +Date: Tue, 22 Nov 2022 12:00:02 +0100 +Subject: [PATCH] updated with escaping characters \a\b\v + +--- + doc/libconfig.texi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/libconfig.texi b/doc/libconfig.texi +index 9645077..e12e82f 100644 +--- a/doc/libconfig.texi ++++ b/doc/libconfig.texi +@@ -563,7 +563,7 @@ Boolean values may have one of the following values: @samp{true}, + String values consist of arbitrary text delimited by double + quotes. Literal double quotes can be escaped by preceding them with a + backslash: @samp{\"}. The escape sequences @samp{\\}, @samp{\f}, +-@samp{\n}, @samp{\r}, and @samp{\t} are also recognized, and have the ++@samp{\n}, @samp{\r}, @samp{\a}, @samp{\b}, @samp{\v} and @samp{\t} are also recognized, and have the + usual meaning. + + In addition, the @samp{\x} escape sequence is supported; this sequence +-- +2.33.0 + diff --git a/libconfig.spec b/libconfig.spec index fe9789d..ae6de49 100644 --- a/libconfig.spec +++ b/libconfig.spec @@ -1,6 +1,6 @@ Name: libconfig Version: 1.7.3 -Release: 3 +Release: 4 Summary: C/C++ Configuration File Library License: LGPLv2+ URL: http://www.hyperrealm.com/libconfig/libconfig.html @@ -12,7 +12,8 @@ Source1: libconfig.pdf Patch6000: backport-Add-logic-to-handle-memory-allocation-failures.patch Patch6001: backport-Fixed-various-bugs-in-setting-lookups-by-name-path.patch -Patch6002: backport-Added-unit-test-for-config_read.patch +Patch6002: backport-Added-unit-test-for-config_read.patcha +Patch6003: backport-updated-with-escaping-characters-a-b-v.patch Patch9000: add-to-strbuf_append_string.patch @@ -68,6 +69,9 @@ make check %{_libdir}/*.la %changelog +* Fri Aug 02 2024 zhangruifang 1.7.3-4 +- backport patch from upstream + * Wed Mar 27 2024 gengqihu - 1.7.3-3 - Type:bugfix - ID:NA -- Gitee