~ubuntu-branches/ubuntu/lucid/bash/lucid

« back to all changes in this revision

Viewing changes to debian/patches/bash32-016.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-08-24 12:06:59 UTC
  • mfrom: (1.3.2 upstream) (2.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090824120659-gmp1uuy2w9k2st53
Tags: 4.0-4ubuntu1
* Merge with Debian; remaining changes:
  - Build from the upstream sources, build the documentation in info format.
  - /etc/skel/.bashrc: eval lesspipe.
* Changes to the skeleton .bashrc:
  - Source .bash_aliases after defining aliases. LP: #400686.
  - Enable color support for grep. LP: #386502.
* The bash docs now  describe uname -s not having any effect on many
  systems. LP: #378595.
* Don't ship an info dir file. LP: #358932.
* Fix some lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -e
2
 
 
3
 
if [ $# -eq 3 -a "$2" = '-d' ]; then
4
 
    pdir="-d $3"
5
 
elif [ $# -ne 1 ]; then
6
 
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
7
 
    exit 1
8
 
fi
9
 
case "$1" in
10
 
    -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11
 
    -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
12
 
    *)
13
 
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14
 
        exit 1
15
 
esac
16
 
exit 0
17
 
 
18
 
# DP: bash-3.2 upstream patch bash32-016
19
 
 
20
 
                             BASH PATCH REPORT
21
 
                             =================
22
 
 
23
 
Bash-Release: 3.2
24
 
Patch-ID: bash32-016
25
 
 
26
 
Bug-Reported-by: Peter Volkov <torre_cremata@mail.ru>
27
 
Bug-Reference-ID: <1171795523.8021.18.camel@localhost>
28
 
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2007-02/msg00054.html
29
 
 
30
 
Bug-Description:
31
 
 
32
 
When moving the cursor, bash sometimes misplaces the cursor when the prompt
33
 
contains two or more multibyte characters.  The particular circumstance that
34
 
uncovered the problem was having the (multibyte) current directory name in
35
 
the prompt string.
36
 
 
37
 
Patch:
38
 
 
39
 
*** ../bash-3.2/lib/readline/display.c  Fri Jan 19 13:34:50 2007
40
 
--- lib/readline/display.c      Sat Mar 10 17:25:44 2007
41
 
***************
42
 
*** 1745,1749 ****
43
 
      {
44
 
        dpos = _rl_col_width (data, 0, new);
45
 
!       if (dpos > prompt_last_invisible)               /* XXX - don't use woff here */
46
 
        {
47
 
          dpos -= woff;
48
 
--- 1745,1752 ----
49
 
      {
50
 
        dpos = _rl_col_width (data, 0, new);
51
 
!       /* Use NEW when comparing against the last invisible character in the
52
 
!        prompt string, since they're both buffer indices and DPOS is a
53
 
!        desired display position. */
54
 
!       if (new > prompt_last_invisible)                /* XXX - don't use woff here */
55
 
        {
56
 
          dpos -= woff;
57
 
*** ../bash-3.2/patchlevel.h    Thu Apr 13 08:31:04 2006
58
 
--- patchlevel.h        Mon Oct 16 14:22:54 2006
59
 
***************
60
 
*** 26,30 ****
61
 
     looks for to find the patch level (for the sccs version string). */
62
 
  
63
 
! #define PATCHLEVEL 15
64
 
  
65
 
  #endif /* _PATCHLEVEL_H_ */
66
 
--- 26,30 ----
67
 
     looks for to find the patch level (for the sccs version string). */
68
 
  
69
 
! #define PATCHLEVEL 16
70
 
  
71
 
  #endif /* _PATCHLEVEL_H_ */