Re: bash-3.2 multibyte behavior on Solaris

2009-06-29 Thread Jan Hnatek
Hi Chet, thanks for the patch. Tested both on x86 and sparc with no additional problem. Sorry for inconvenience, it could have been sorted out in patch 49. Will this come out as patch 50? Regards, hnhn Chet Ramey wrote: Jan Hnatek wrote: Chet Ramey wrote: So what does the Solaris mbrtowc ret

Re: bash-3.2 multibyte behavior on Solaris

2009-06-27 Thread Chet Ramey
Jan Hnatek wrote: > > Chet Ramey wrote: >> So what does the Solaris mbrtowc return in this case? The flow of that >> particular section of code isn't that great (bash-4.0 is better), but it >> seems to me that point can only increase. If mbrtowc returns -2, the >> loop won't be entered at all. >

Re: bash-3.2 multibyte behavior on Solaris

2009-06-26 Thread Jan Hnatek
Chet Ramey wrote: So what does the Solaris mbrtowc return in this case? The flow of that particular section of code isn't that great (bash-4.0 is better), but it seems to me that point can only increase. If mbrtowc returns -2, the loop won't be entered at all. I've checked it and looks to do

Re: bash-3.2 multibyte behavior on Solaris

2009-06-26 Thread Chet Ramey
Jan Hnatek wrote: > 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 ba

Re: bash-3.2 multibyte behavior on Solaris

2009-06-26 Thread Jan Hnatek
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 multiby

Re: bash-3.2 multibyte behavior on Solaris

2009-06-03 Thread Chet Ramey
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 -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRUc...@case.eduhttp://cn

Re: bash-3.2 multibyte behavior on Solaris

2009-06-01 Thread Jan Hnatek
Hi Chet, thanks for your investigation, it works. Is this a patch that would be officially released? Regards, hnhn Chet Ramey wrote: Jan Hnatek wrote: Hi, bash-3.2 on Solaris is suffering from the following bug: http://defect.opensolaris.org/bz/show_bug.cgi?id=3743 (bash hangs sometimes wh

Re: bash-3.2 multibyte behavior on Solaris

2009-05-29 Thread Chet Ramey
Jan Hnatek wrote: > Hi, > > bash-3.2 on Solaris is suffering from the following bug: > http://defect.opensolaris.org/bz/show_bug.cgi?id=3743 > (bash hangs sometimes when navigating with the arrow keys) The problem is that different implementations of mbrtowc return different values when `n' is

Re: bash-3.2 multibyte behavior on Solaris

2009-05-26 Thread Chet Ramey
Jan Hnatek wrote: > Hi, > > bash-3.2 on Solaris is suffering from the following bug: > http://defect.opensolaris.org/bz/show_bug.cgi?id=3743 > (bash hangs sometimes when navigating with the arrow keys) I'll look at this as soon as I have an available Solaris machine. -- ``The lyf so short, th

bash-3.2 multibyte behavior on Solaris

2009-05-22 Thread Jan Hnatek
Hi, bash-3.2 on Solaris is suffering from the following bug: http://defect.opensolaris.org/bz/show_bug.cgi?id=3743 (bash hangs sometimes when navigating with the arrow keys) I tried both 3.2.25 present in latest OpenSolaris as well as custom built 3.2.48 - reproduced in both. It affects all UT