-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 11/9/2006 10:10 PM:
> 
> Indeed, this alternative patch also seems to fix the test case for me:
> 
> --- bash-3.2-orig/lib/readline/display.c   2006-09-14 12:20:12.000000000
> -0600
> +++ bash-3.2/lib/readline/display.c     2006-11-09 22:08:26.249000000 -0700
> @@ -2380,6 +2380,8 @@ _rl_col_width (str, start, end)
> 
>    if (end <= start)
>      return 0;
> +  if (MB_CUR_MAX == 1)
> +    return end - start;
> 
>    memset (&ps, 0, sizeof (mbstate_t));
> 
> 

Using just the above patch to _rl_col_width, I have verified that ALL of
the prompt display bugs reported to cygwin over the past year and a half
are fixed; I haven't been able to come up with any broken scenarios.  I
guess there aren't that many platforms that provide mbrtowc and compile
readline with multibyte support, yet run a locale with MB_CUR_MAX == 1 by
default.

- --
Life is short - so eat dessert first!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFVIu184KuGfSFAYARArJfAKCNFJFPKMiuNgALMlqwsqsgIUNNGQCgs7Ny
6kuy+VNaheBrKiS0knaDL90=
=kXTd
-----END PGP SIGNATURE-----


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to