Add official patch readline81-002

OBS-URL: https://build.opensuse.org/package/show/Base:System/readline?expand=0&rev=29
This commit is contained in:
Dr. Werner Fink 2022-01-14 12:04:50 +00:00 committed by Git OBS Bridge
parent 303ac013bd
commit 1a308632a9
4 changed files with 58 additions and 2 deletions

View File

@ -1,7 +1,15 @@
-------------------------------------------------------------------
Fri Jan 14 12:03:35 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Add official patch readline81-002 and its signature
* There are some characters (e.g., cyrillic) that can't be displayed using
certain single-byte encodings (e.g., cp1251) because the negative signed
int is interpreted as EOF and not displayed.
-------------------------------------------------------------------
Wed May 5 15:02:23 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Add official patch readline81-001 and its signature
- Add official patch readline81-001 and its signature
* The code to check readline versions in an inputrc file had the sense of the
comparisons reversed.

View File

@ -1,7 +1,7 @@
#
# spec file for package readline
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -31,8 +31,10 @@ Source2: baselibs.conf
Source4: https://tiswww.case.edu/php/chet/gpgkey.asc#/%{name}.keyring
# signatures for official patches
Source100: readline81-001.sig
Source101: readline81-002.sig
# official patches
Patch100: readline81-001
Patch101: readline81-002
# local patches
Patch200: readline-%{version}.dif
Patch201: readline-6.3-input.dif
@ -104,6 +106,7 @@ as well as programming with the interface of the readline library.
%setup -q
# official patches
%patch100 -p0
%patch101 -p0
# local patches
%patch201 -p2 -b .zerotty
%patch202 -p2 -b .conf

45
readline81-002 Normal file
View File

@ -0,0 +1,45 @@
READLINE PATCH REPORT
=====================
Readline-Release: 8.1
Patch-ID: readline81-002
Bug-Reported-by: Volodymyr Prodan <vovcat@gmail.com>
Bug-Reference-ID:
Bug-Reference-URL: https://savannah.gnu.org/patch/?10076
Bug-Description:
There are some characters (e.g., cyrillic) that can't be displayed using
certain single-byte encodings (e.g., cp1251) because the negative signed
int is interpreted as EOF and not displayed.
Patch (apply with `patch -p0'):
*** ../readline-8.1-patched/display.c 2021-03-16 18:12:20.000000000 -0400
--- display.c 2021-06-07 16:53:08.000000000 -0400
***************
*** 1599,1603 ****
for (cur_face = FACE_NORMAL, i = 0; i < n; i++)
! putc_face (str[i], face[i], &cur_face);
putc_face (EOF, FACE_NORMAL, &cur_face);
}
--- 1599,1603 ----
for (cur_face = FACE_NORMAL, i = 0; i < n; i++)
! putc_face ((unsigned char) str[i], face[i], &cur_face);
putc_face (EOF, FACE_NORMAL, &cur_face);
}
*** ../readline-8.1/patchlevel 2013-11-15 08:11:11.000000000 -0500
--- patchlevel 2014-03-21 08:28:40.000000000 -0400
***************
*** 1,3 ****
# Do not edit -- exists only for use by patch
! 1
--- 1,3 ----
# Do not edit -- exists only for use by patch
! 2

BIN
readline81-002.sig Normal file

Binary file not shown.