Upload Tizen:Base source
[external/bash.git] / packaging / bash41-002.patch
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.1
5 Patch-ID:       bash41-002
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 *** ../bash-4.1-patched/lib/readline/complete.c 2009-11-29 18:39:30.000000000 -0500
24 --- ./lib/readline/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 *** ../bash-4.1-patched/patchlevel.h    2009-10-01 16:39:22.000000000 -0400
52 --- ./patchlevel.h      2010-01-14 09:38:08.000000000 -0500
53 ***************
54 *** 26,30 ****
55      looks for to find the patch level (for the sccs version string). */
56   
57 ! #define PATCHLEVEL 1
58   
59   #endif /* _PATCHLEVEL_H_ */
60 --- 26,30 ----
61      looks for to find the patch level (for the sccs version string). */
62   
63 ! #define PATCHLEVEL 2
64   
65   #endif /* _PATCHLEVEL_H_ */