bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash-3.2 multibyte behavior on Solaris


From: Jan Hnatek
Subject: Re: bash-3.2 multibyte behavior on Solaris
Date: Fri, 26 Jun 2009 11:47:11 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090323)

Hi Chet,

unfortunately, there's additional problem with bash
multibyte behavior, which is specific to sparc.

When using bash patch level <49 on sparc in multibyte,
pressing right arrow at the end of the line moves
the cursor one character left.

When using bash patch level 49 on sparc in multibyte,
pressing right arrow at the end of the line moves
the cursor two characters left.

Attached patch does remove the issue, but may
not be the core problem... I'd be grateful for
comments.

Thanks & regards,
hnhn


--- bash-3.2/lib/readline/mbutil.c.orig Thu Jun 25 08:34:51 2009
+++ bash-3.2/lib/readline/mbutil.c      Thu Jun 25 08:36:51 2009
@@ -128,7 +128,7 @@
        }
     }

-  if (find_non_zero)
+  if (find_non_zero && len)
     {
       tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
       while (tmp > 0 && wcwidth (wc) == 0)



Chet Ramey wrote:
Jan Hnatek wrote:
Hi Chet,

thanks for your investigation, it works.
Is this a patch that would be officially released?

Yes, it will be released as an official patch.

Chet


--
Jan Hnatek
jan.hnatek@sun.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]