pg83 commited on
Commit
7814321
·
verified ·
1 Parent(s): 5e3ba7b

Upload cas/21/21f0a03106dbe697337cd25c70eb0edbaa2bdb6d595b45f83285cdd35bac84de with huggingface_hub

Browse files
cas/21/21f0a03106dbe697337cd25c70eb0edbaa2bdb6d595b45f83285cdd35bac84de ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ READLINE PATCH REPORT
2
+ =====================
3
+
4
+ Readline-Release: 8.3
5
+ Patch-ID: readline83-001
6
+
7
+ Bug-Reported-by: Dmitri A. Sergatskov <dasergatskov@gmail.com>
8
+ Bug-Reference-ID: <CAO+XyQ+ipUzFiXvRrDbTstfm1heZrerjvZGVaC60y=txMgyP+g@mail.gmail.com>
9
+ Bug-Reference-URL:
10
+
11
+ Bug-Description:
12
+
13
+ If an application uses readline's event hook, it is called while waiting for
14
+ input. There is a bug in the function that waits for available input that
15
+ causes it not to read that input under certain circumstances, resulting in
16
+ a loop where the event hook continues to be called, but there is no input
17
+ to stop it.
18
+
19
+ Patch (apply with `patch -p0'):
20
+
21
+ *** ../readline-8.3/input.c Fri May 2 09:29:05 2025
22
+ --- input.c Tue Jul 8 15:37:13 2025
23
+ ***************
24
+ *** 262,266 ****
25
+ tty = fileno (rl_instream);
26
+
27
+ ! /* Move this up here to give it first shot, but it can't set chars_avail */
28
+ /* XXX - need rl_chars_available_hook? */
29
+ if (rl_input_available_hook)
30
+ --- 262,267 ----
31
+ tty = fileno (rl_instream);
32
+
33
+ ! /* Move this up here to give it first shot, but it can't set chars_avail,
34
+ ! so we assume a single character is available. */
35
+ /* XXX - need rl_chars_available_hook? */
36
+ if (rl_input_available_hook)
37
+ ***************
38
+ *** 269,272 ****
39
+ --- 270,275 ----
40
+ if (result == 0)
41
+ result = -1;
42
+ + else
43
+ + chars_avail = 1;
44
+ }
45
+
46
+ ***************
47
+ *** 286,289 ****
48
+ --- 289,293 ----
49
+ if (result <= 0)
50
+ return 0; /* Nothing to read. */
51
+ + result = -1; /* there is something, so check how many chars below */
52
+ }
53
+ #endif
54
+ *** ../readline-8.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
55
+ --- patchlevel 2014-03-21 08:28:40.000000000 -0400
56
+ ***************
57
+ *** 1,3 ****
58
+ # Do not edit -- exists only for use by patch
59
+
60
+ ! 0
61
+ --- 1,3 ----
62
+ # Do not edit -- exists only for use by patch
63
+
64
+ ! 1