Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-25 Thread Lasse Kärkkäinen
Can you reproduce this with bash-4.0 with all 24 patches applied? I still have more testing to do, but I haven't been able to reproduce it on my Mac OS X development machines. Dunno what was wrong, but redownloading the patches solved the patching issue. Compiled with all the patches applied

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-24 Thread Chet Ramey
Lasse Kärkkäinen wrote: >> Can you reproduce this with bash-4.0 with all 24 patches applied? I >> still have more testing to do, but I haven't been able to reproduce >> it on my Mac OS X development machines. > > Dunno what was wrong, but redownloading the patches solved the patching > issue. >

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-22 Thread Bob Proulx
Lasse Kärkkäinen wrote: >> ftp://ftp.cwru.edu/pub/bash/bash-4.0-patches > > So, what format are these and how do I patch (on Linux)? Apparently the > patch program doesn't recognize them automatically. The patch program recognizes them okay on my machine. Works for me. > P.S. is there some spe

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-22 Thread Lasse Kärkkäinen
ftp://ftp.cwru.edu/pub/bash/bash-4.0-patches So, what format are these and how do I patch (on Linux)? Apparently the patch program doesn't recognize them automatically. P.S. is there some specific reason why you do things in so non-standard way? I would expect a project of this size use a ve

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-22 Thread Chet Ramey
Lasse Kärkkäinen wrote: >> ftp://ftp.cwru.edu/pub/bash/bash-4.0-patches > > So, what format are these and how do I patch (on Linux)? Apparently the > patch program doesn't recognize them automatically. They can be applied with `patch -p0'. > P.S. is there some specific reason why you do things i

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-21 Thread Lasse Kärkkäinen
Steps to reproduce: (using UTF-8 locales) $ export PS1="\[\e]2;test Ä and Ö here\a\]prompt>" prompt>abcdefgh# Enter some alphabets and press Home ^ Cursor goes here, instead of ^ here where it should go. Add more UTF-8 letters as non-printable characters in PS1 and the offset fro

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-21 Thread Chet Ramey
Lasse Kärkkäinen wrote: >> Can you reproduce this with bash-4.0 with all 24 patches applied? I >> still have more testing to do, but I haven't been able to reproduce >> it on my Mac OS X development machines. > > Which patches? Do you use some kind of VCS where I could just get the > current sou

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-19 Thread Chet Ramey
Lasse Kärkkäinen wrote: > Steps to reproduce: (using UTF-8 locales) > > $ export PS1="\[\e]2;test Ä and Ö here\a\]prompt>" > prompt>abcdefgh# Enter some alphabets and press Home > ^ Cursor goes here, instead of >^ here where it should go. > > Add more UTF-8 letters as non-printab

Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-14 Thread Lasse Kärkkäinen
Steps to reproduce: (using UTF-8 locales) $ export PS1="\[\e]2;test Ä and Ö here\a\]prompt>" prompt>abcdefgh# Enter some alphabets and press Home ^ Cursor goes here, instead of ^ here where it should go. Add more UTF-8 letters as non-printable characters in PS1 and the offset fr