Update to readline-8.2 patchlevel 1

This commit is contained in:
Siteshwar Vashisht 2022-10-06 10:12:12 +02:00
parent e4db95e0f7
commit d9eeaa11d2
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,23 @@
diff --git a/nls.c b/nls.c
--- 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
diff --git a/patchlevel b/patchlevel
index d8c9df7..fdf4740 100644
--- a/patchlevel
+++ b/patchlevel
@@ -1,3 +1,3 @@
# Do not edit -- exists only for use by patch
-0
+1

View File

@ -1,13 +1,14 @@
Summary: A library for editing typed command lines
Name: readline
Version: 8.2
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv3+
URL: https://tiswww.case.edu/php/chet/readline/rltop.html
Source: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
# Official upstream patches
# Patches are converted to apply with '-p1'
Patch1: readline-8.2-patch-1.patch
# Other patches
# Remove RPATH, use CFLAGS
@ -82,6 +83,9 @@ rm -vf %{buildroot}%{_infodir}/dir*
%{_libdir}/libhistory.a
%changelog
* Thu Oct 06 2022 Siteshwar Vashisht <svashisht@redhat.com> - 8.2-2
- Update to readline-8.2 patchlevel 1
* Wed Oct 05 2022 Siteshwar Vashisht <svashisht@redhat.com> - 8.2-1
- Update to readline-8.2
Resolves: #2129926