view src/readline-0-001-upstream.patch @ 6538:8e1e1a000deb

of-netcdf: Fix compatibility with Octave 9. * src/of-netcdf-1-octave-9-compat.patch: Add patch that replaces class that has been deprecated in Octave 7 and removed from Octave 9. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 19 Nov 2022 12:54:37 +0100
parents 5ef7d51c2195
children a76f513700df
line wrap: on
line source

			   READLINE PATCH REPORT
			   =====================

Readline-Release: 8.2
Patch-ID: readline82-001

Bug-Reported-by:	Kan-Ru Chen <koster@debian.org>
Bug-Reference-ID:
Bug-Reference-URL:	https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021109

Bug-Description:

Starting a readline application with an invalid locale specification for
LC_ALL/LANG/LC_CTYPE can cause it crash on the first call to readline.

diff -ur a/nls.c b/nls.c
--- a/nls.c	2022-08-15 09:38:51.000000000 -0400
+++ b/nls.c	2021-01-18 2022-10-05 09:23:22.000000000 -0400
@@ -142,4 +142,8 @@
      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;

diff -ur a/patchlevel b/patchlevel
--- a/patchlevel	2013-11-15 08:11:11.000000000 -0500
+++ b/patchlevel	2014-03-21 08:28:40.000000000 -0400
***************
@@ -1,3 +1,3 @@
 # Do not edit -- exists only for use by patch
 
-0
+1