Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15693 > unrolled thread

Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue

Started byАлексей Шилин <rootlexx@mail.ru>
First post2019-12-03 21:43 +0300
Last post2019-12-03 21:43 +0300
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue Алексей Шилин <rootlexx@mail.ru> - 2019-12-03 21:43 +0300

#15693 — Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue

FromАлексей Шилин <rootlexx@mail.ru>
Date2019-12-03 21:43 +0300
SubjectRe: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Message-ID<mailman.212.1575398629.1979.bug-bash@gnu.org>
В Ср, 27/11/2019 в 20:29 -0500, Chet Ramey пишет:
> I poked around enough and found the cause. There will be a
> fix in the next devel branch push.

The first issue with the line not being cleared is indeed fixed.
Thanks!

The second one with incorrect history entry output position after e.g.
End is pressed is unfortunately still there:

test@sid-bash:~$ echo $0
/usr/local/bin/bash
test@sid-bash:~$ PS1='\[\e]0;тестоваястрока\a\]test prompt\$ '
test prompt$ echo hello world
hello world
test prompt$ 

# Press C-r, type 'he' and press End
# Result:

test prompt$rld
           ^------ cursor is here



Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux sid-bash 4.19.0-6-amd64 #1 SMP Debian 4.19.67-
2+deb10u2 (2019-11-11) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 11
Release Status: maint

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web