From 1c38c7a67e9d4d68e27c6ad183d1cccbb5596ddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:51:57 +0200 Subject: Adding debian version 8.2-1.3. Signed-off-by: Daniel Baumann --- ...8.2-patch-1-fix-crash-when-readline-is-star.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch (limited to 'debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch') diff --git a/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch b/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch new file mode 100644 index 0000000..2bf29da --- /dev/null +++ b/debian/patches/0001-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch @@ -0,0 +1,20 @@ +From 7274faabe97ce53d6b464272d7e6ab6c1392837b Mon Sep 17 00:00:00 2001 +From: Chet Ramey +Date: Wed, 5 Oct 2022 10:41:16 -0400 +Subject: Readline-8.2 patch 1: fix crash when readline is started with an + invalid locale specification + +--- a/nls.c ++++ b/nls.c +@@ -141,6 +141,10 @@ _rl_init_locale (void) + if (lspec == 0) + lspec = ""; + ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */ ++ if (ret == 0 || *ret == 0) ++ ret = setlocale (LC_CTYPE, (char *)NULL); ++ if (ret == 0 || *ret == 0) ++ ret = RL_DEFAULT_LOCALE; + #else + ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec; + #endif + -- cgit v1.2.3