[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [readline] Multibyte invisible chars cause weird prompt length calcu
From: |
Chet Ramey |
Subject: |
Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue |
Date: |
Wed, 27 Nov 2019 20:29:08 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
On 11/27/19 3:19 PM, Алексей Шилин wrote:
> В Ср, 27/11/2019 в 11:48 -0500, Chet Ramey пишет:
>> The reason I ask is that I can (unsurprisingly) reproduce multiple
>> redisplay issues if the newline after the `\h:' is present, but none
>> when $PS1 doesn't contain any newlines.
>
> You mean you can't reproduce the issue? That's weird, since I can
> easily do it in Konsole, in GNOME Terminal, even in bare tty; in Debian
> 10, in Fedora 31 - all with PS1 as simple as '\[\e]0;\w\a\]\w\$ '. Are
> you sure you're using a multi-byte path (like the one I provided) and a
> *.UTF-8 locale?
Yes, and yes. I poked around enough and found the cause. There will be a
fix in the next devel branch push.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, (continued)
- Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Dennis Williamson, 2019/11/26
- Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Greg Wooledge, 2019/11/26
- Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Алексей Шилин, 2019/11/26
- Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Алексей Шилин, 2019/11/26
- Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Dennis Williamson, 2019/11/26
Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Chet Ramey, 2019/11/27
Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue, Алексей Шилин, 2019/11/27