1 |
READLINE PATCH REPORT |
2 |
===================== |
3 |
|
4 |
Readline-Release: 6.1 |
5 |
Patch-ID: readline61-001 |
6 |
|
7 |
Bug-Reported-by: guillaume.outters@free.fr |
8 |
Bug-Reference-ID: <20100105230441.70D171AA7F52@asterix.local> |
9 |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-01/msg00017.html |
10 |
|
11 |
Bug-Description: |
12 |
|
13 |
Bash-4.1/Readline-6.1 introduced a hook function that allows applications |
14 |
to rewrite or modify filenames read from the file system before comparing |
15 |
them with a word to be completed. The converted filename, if it matches, |
16 |
needs to be inserted into the line buffer, replacing the original contents. |
17 |
|
18 |
This fixes a completion bug on Mac OS X involving filenames containing |
19 |
UTF-8 characters. |
20 |
|
21 |
Patch (apply with `patch -p0'): |
22 |
|
23 |
*** ../readline-6.1-patched/complete.c 2009-11-29 18:39:30.000000000 -0500 |
24 |
--- complete.c 2010-01-06 08:30:23.000000000 -0500 |
25 |
*************** |
26 |
*** 2139,2143 **** |
27 |
if (filename_len == 0) |
28 |
{ |
29 |
! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (entry->d_name)) |
30 |
continue; |
31 |
|
32 |
--- 2139,2143 ---- |
33 |
if (filename_len == 0) |
34 |
{ |
35 |
! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (convfn)) |
36 |
continue; |
37 |
|
38 |
*************** |
39 |
*** 2220,2224 **** |
40 |
} |
41 |
|
42 |
! strcpy (temp + dirlen, entry->d_name); |
43 |
} |
44 |
else |
45 |
--- 2220,2224 ---- |
46 |
} |
47 |
|
48 |
! strcpy (temp + dirlen, convfn); |
49 |
} |
50 |
else |
51 |
*** ../readline-6.1-patched/patchlevel 2008-11-18 11:01:14.000000000 -0500 |
52 |
--- patchlevel 2010-01-14 10:15:52.000000000 -0500 |
53 |
*************** |
54 |
*** 1,3 **** |
55 |
# Do not edit -- exists only for use by patch |
56 |
|
57 |
! 0 |
58 |
--- 1,3 ---- |
59 |
# Do not edit -- exists only for use by patch |
60 |
|
61 |
! 1 |