]> git.pld-linux.org Git - packages/bash.git/blob - bash32-046
- new (from upstream)
[packages/bash.git] / bash32-046
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release: 3.2
5 Patch-ID: bash32-046
6
7 Bug-Reported-by:        Wang Xin <wxinee@gmail.com>
8 Bug-Reference-ID:       <9a73e1570807062042ide16698m10e1b18036c95592@mail.gmail.com>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2008-07/msg00014.html
10
11 Bug-Description:
12
13 Bash did not compute the length of multibyte characters correctly when
14 performing array element length references (e.g., ${#var[subscript]}).
15
16 Patch:
17
18 *** /usr/src/local/bash/bash-3.2-patched/subst.c        2008-04-28 22:00:20.000000000 -0400
19 --- subst.c     2008-11-10 22:02:38.000000000 -0500
20 ***************
21 *** 4813,4817 ****
22       t = (ind == 0) ? value_cell (var) : (char *)NULL;
23   
24 !   len = STRLEN (t);
25     return (len);
26   }
27 --- 4813,4817 ----
28       t = (ind == 0) ? value_cell (var) : (char *)NULL;
29   
30 !   len = MB_STRLEN (t);
31     return (len);
32   }
33 *** ../bash-3.2/patchlevel.h    Thu Apr 13 08:31:04 2006
34 --- patchlevel.h        Mon Oct 16 14:22:54 2006
35 ***************
36 *** 26,30 ****
37      looks for to find the patch level (for the sccs version string). */
38   
39 ! #define PATCHLEVEL 45
40   
41   #endif /* _PATCHLEVEL_H_ */
42 --- 26,30 ----
43      looks for to find the patch level (for the sccs version string). */
44   
45 ! #define PATCHLEVEL 46
46   
47   #endif /* _PATCHLEVEL_H_ */
This page took 0.031675 seconds and 3 git commands to generate.