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-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-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

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