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


Groups > gnu.bash.bug > #15693

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

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Алексей Шилин <rootlexx@mail.ru>
Newsgroups gnu.bash.bug
Subject Re: [readline] Multibyte invisible chars cause weird prompt length calculation issue
Date Tue, 03 Dec 2019 21:43:27 +0300
Lines 39
Approved bug-bash@gnu.org
Message-ID <mailman.212.1575398629.1979.bug-bash@gnu.org> (permalink)
References <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <68c76159-3cf3-b12f-9145-f0578d5415a3@case.edu> <db11c81c9312dec35fa6579db44dc03d03bb27fd.camel@mail.ru> <f7cb9c63-1eeb-89c0-2bb7-439794075279@case.edu> <f2e0255652f53d22135229ed61f27cca00a312fe.camel@mail.ru> <2f0b7923-3b8b-f16c-f35f-f4c8c6782161@case.edu> <855d321fac7116e8eaa7561ea30b0ac5a309df94.camel@mail.ru>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1575398631 30847 209.51.188.17 (3 Dec 2019 18:43:51 GMT)
X-Complaints-To action@cs.stanford.edu
To chet.ramey@case.edu, bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID; bh=pzfgTAT2A8l2IekZV1sbLgSoXNtzwOrFCrnMdF6c+os=; b=uAClXJt0GvV1cPOCSHWJYoRsjMX058z9mB2/gdp3XmakxoN+GQcSJ7CsAXRMDGy/fHkQMS/Efm0MoYmTgZyzIp2ZfB25HMtv0663mm9gceZsWbcszZn7xxQofeC3QWWD8hkCBded6sMk6AUBSKk6LrLX3xBDVI1G95luhhXUCI4=;
In-Reply-To <2f0b7923-3b8b-f16c-f35f-f4c8c6782161@case.edu>
User-Agent Evolution 3.30.5-1.1
Authentication-Results smtp37.i.mail.ru; auth=pass smtp.auth=rootlexx@mail.ru smtp.mailfrom=rootlexx@mail.ru
X-77F55803 257C4F86AB09C89C5A78504BD2AC2941988784FC6C4AE31F9FCE85A47CCE5FDD9EAA43CEACA0AF55AC6222861685CE051D34F8FCC6FA5819
X-7FA49CB5 0D63561A33F958A57B1ED7DF2908CF0D0AA650CFF958424913668D87A5DA2E1C8941B15DA834481FA18204E546F3947C2FFDA4F57982C5F4F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249A64C4E77951A82EE76E601842F6C81A12EF20D2F80756B5F5C318D1F9ECD513A76E601842F6C81A127C277FBC8AE2E8B35401D2C5D22D6C43AA81AA40904B5D99449624AB7ADAF370B02670E5FEECA50725E5C173C3A84C3CE9959E2676FD8778041F545A7973DE86D8C47C27EEC5E9FB5C8C57E37DE458B4C7702A67D5C3316FA3894348FB808DBE5FF2EAB69DB47CC574AF45C6390F7469DAA53EE0834AAEE
X-Mailru-Sender FD65D7C492470CAED3DD1703795F7E023308150D77D0B8528F042A9D5FEAEBA21C39CE01AE4E0FAD15D893B5EE9B869EC77752E0C033A69ED2A0601D20520849A97B7613133B5FEC3453F38A29522196
X-Mras OK
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 94.100.177.97
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <855d321fac7116e8eaa7561ea30b0ac5a309df94.camel@mail.ru>
X-Mailman-Original-References <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <68c76159-3cf3-b12f-9145-f0578d5415a3@case.edu> <db11c81c9312dec35fa6579db44dc03d03bb27fd.camel@mail.ru> <f7cb9c63-1eeb-89c0-2bb7-439794075279@case.edu> <f2e0255652f53d22135229ed61f27cca00a312fe.camel@mail.ru> <2f0b7923-3b8b-f16c-f35f-f4c8c6782161@case.edu>
Xref csiph.com gnu.bash.bug:15693

Show key headers only | View raw


В Ср, 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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web