comparison src/readline-0-001-upstream.patch @ 6545:a76f513700df

readline: Fix issue with arrow keys in Octave CLI (bug #63400). * src/readline-0-001-upstream.patch: Fix intentation. * src/readline-2-event-hook.patch: Replace another instance of "_kbhit" with "_win32_kbhit". Use "ReadConsoleInputW" to also catch non-ASCII character keys. Convert wchar_t encoded characters (UTF-16) to UTF-8. Overhaul escape sequence handling. * src/readline-1-locale.patch: Remove patch that's no longer needed. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 27 Nov 2022 19:08:31 +0100
parents 5ef7d51c2195
children
comparison
equal deleted inserted replaced
6544:5409aa8dd237 6545:a76f513700df
15 15
16 diff -ur a/nls.c b/nls.c 16 diff -ur a/nls.c b/nls.c
17 --- a/nls.c 2022-08-15 09:38:51.000000000 -0400 17 --- a/nls.c 2022-08-15 09:38:51.000000000 -0400
18 +++ b/nls.c 2021-01-18 2022-10-05 09:23:22.000000000 -0400 18 +++ b/nls.c 2021-01-18 2022-10-05 09:23:22.000000000 -0400
19 @@ -142,4 +142,8 @@ 19 @@ -142,4 +142,8 @@
20 lspec = ""; 20 lspec = "";
21 ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */ 21 ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */
22 + if (ret == 0 || *ret == 0) 22 + if (ret == 0 || *ret == 0)
23 + ret = setlocale (LC_CTYPE, (char *)NULL); 23 + ret = setlocale (LC_CTYPE, (char *)NULL);
24 + if (ret == 0 || *ret == 0) 24 + if (ret == 0 || *ret == 0)
25 + ret = RL_DEFAULT_LOCALE; 25 + ret = RL_DEFAULT_LOCALE;
26 #else 26 #else
27 ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec; 27 ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec;
28 28
29 diff -ur a/patchlevel b/patchlevel 29 diff -ur a/patchlevel b/patchlevel
30 --- a/patchlevel 2013-11-15 08:11:11.000000000 -0500 30 --- a/patchlevel 2013-11-15 08:11:11.000000000 -0500
31 +++ b/patchlevel 2014-03-21 08:28:40.000000000 -0400 31 +++ b/patchlevel 2014-03-21 08:28:40.000000000 -0400
32 *************** 32 ***************