wok annotate bash/stuff/bash32-025.patch @ rev 1803
Add scim-pinyin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 02 09:33:47 2008 +0000 (2008-12-02) |
parents | |
children |
rev | line source |
---|---|
pankso@14 | 1 BASH PATCH REPORT |
pankso@14 | 2 ================= |
pankso@14 | 3 |
pankso@14 | 4 Bash-Release: 3.2 |
pankso@14 | 5 Patch-ID: bash32-025 |
pankso@14 | 6 |
pankso@14 | 7 Bug-Reported-by: Tom Bjorkholm <tom.bjorkholm@ericsson.com> |
pankso@14 | 8 Bug-Reference-ID: <AEA1A32F001C6B4F98614B5B80D7647D01C075E9@esealmw115.eemea.ericsson.se> |
pankso@14 | 9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2007-04/msg00004.html |
pankso@14 | 10 |
pankso@14 | 11 Bug-Description: |
pankso@14 | 12 |
pankso@14 | 13 An off-by-one error in readline's input buffering caused readline to drop |
pankso@14 | 14 each 511th character of buffered input (e.g., when pasting a large amount |
pankso@14 | 15 of data into a terminal window). |
pankso@14 | 16 |
pankso@14 | 17 Patch: |
pankso@14 | 18 |
pankso@14 | 19 *** ../bash-3.2-patched/lib/readline/input.c Wed Aug 16 15:15:16 2006 |
pankso@14 | 20 --- lib/readline/input.c Tue Jul 17 09:24:21 2007 |
pankso@14 | 21 *************** |
pankso@14 | 22 *** 134,139 **** |
pankso@14 | 23 |
pankso@14 | 24 *key = ibuffer[pop_index++]; |
pankso@14 | 25 ! |
pankso@14 | 26 if (pop_index >= ibuffer_len) |
pankso@14 | 27 pop_index = 0; |
pankso@14 | 28 |
pankso@14 | 29 --- 134,142 ---- |
pankso@14 | 30 |
pankso@14 | 31 *key = ibuffer[pop_index++]; |
pankso@14 | 32 ! #if 0 |
pankso@14 | 33 if (pop_index >= ibuffer_len) |
pankso@14 | 34 + #else |
pankso@14 | 35 + if (pop_index > ibuffer_len) |
pankso@14 | 36 + #endif |
pankso@14 | 37 pop_index = 0; |
pankso@14 | 38 |
pankso@14 | 39 *************** |
pankso@14 | 40 *** 251,255 **** |
pankso@14 | 41 { |
pankso@14 | 42 k = (*rl_getc_function) (rl_instream); |
pankso@14 | 43 ! rl_stuff_char (k); |
pankso@14 | 44 if (k == NEWLINE || k == RETURN) |
pankso@14 | 45 break; |
pankso@14 | 46 --- 254,259 ---- |
pankso@14 | 47 { |
pankso@14 | 48 k = (*rl_getc_function) (rl_instream); |
pankso@14 | 49 ! if (rl_stuff_char (k) == 0) |
pankso@14 | 50 ! break; /* some problem; no more room */ |
pankso@14 | 51 if (k == NEWLINE || k == RETURN) |
pankso@14 | 52 break; |
pankso@14 | 53 *************** |
pankso@14 | 54 *** 374,378 **** |
pankso@14 | 55 --- 378,386 ---- |
pankso@14 | 56 } |
pankso@14 | 57 ibuffer[push_index++] = key; |
pankso@14 | 58 + #if 0 |
pankso@14 | 59 if (push_index >= ibuffer_len) |
pankso@14 | 60 + #else |
pankso@14 | 61 + if (push_index > ibuffer_len) |
pankso@14 | 62 + #endif |
pankso@14 | 63 push_index = 0; |
pankso@14 | 64 |
pankso@14 | 65 *** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006 |
pankso@14 | 66 --- patchlevel.h Mon Oct 16 14:22:54 2006 |
pankso@14 | 67 *************** |
pankso@14 | 68 *** 26,30 **** |
pankso@14 | 69 looks for to find the patch level (for the sccs version string). */ |
pankso@14 | 70 |
pankso@14 | 71 ! #define PATCHLEVEL 24 |
pankso@14 | 72 |
pankso@14 | 73 #endif /* _PATCHLEVEL_H_ */ |
pankso@14 | 74 --- 26,30 ---- |
pankso@14 | 75 looks for to find the patch level (for the sccs version string). */ |
pankso@14 | 76 |
pankso@14 | 77 ! #define PATCHLEVEL 25 |
pankso@14 | 78 |
pankso@14 | 79 #endif /* _PATCHLEVEL_H_ */ |