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: =?koi8-r?Q?=E1=CC=C5=CB=D3=C5=CA_?= =?koi8-r?Q?=FB=C9=CC=C9=CE?= 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: References: <3dd641953467a3299265e479026fc40a7bb697d4.camel@mail.ru> <68c76159-3cf3-b12f-9145-f0578d5415a3@case.edu> <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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> <2f0b7923-3b8b-f16c-f35f-f4c8c6782161@case.edu> Xref: csiph.com gnu.bash.bug:15693 В Ср, 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