X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=tls+smcph6RKiWGu
	WSn4VC8KNxduTAl3bTaOt4U/Jnr1CYlhQr5FL7H1M3XsZE4rIk49xwJzc5AAVsne
	mWJoK8e/O9sLEBaU548JUndlaA0khxt7bPsjNKFUAx2gqBXZOUNcSFMujxJpvk8J
	9pf928DkTudWOvr5ZD/C/MveCgo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=cMJn29M5JJs77R9Ll1Ye+R
	NfVYQ=; b=DtI0YPvWeiNznn1iJ/xlNNPy0X7x+PJLyR34ODvfY7/qhg7nE4Krt3
	Ud55fw9C2ieJJrpnCEH+TXpd+6/jX4BMB7eKtY8zEm/uRxxb9zQG8LAx6DLUvcnm
	tou/PiSTAR3AdoWStJ3mRgXnhDknCefGB2uFblHOyiPT3Y4sCpa/M=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=UD:yandex.ru, Sunday, sunday, andrey
X-HELO: forward101o.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1534696503;	bh=W6BOgWpZmhTnY+hSGwpbi4PA2zIvon+9dtMvacpJDLE=;	h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References;	b=Q+zjcP7JMnMrFT97ZVAvTm6TRtA8rLQiUZgB8GvOzwm8K7rWecVxLioVrkFQO64o3	 BQ8PFqutvhtPqOfzlrFIwWJdes6Eofci9wY228uG0kH0MzVd301tPKOQ7IWL9TAYJX	 dxDL8FhEjPzmvsrWOotYvv/8t5Ftuq4+IAN0XHug=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1534696501;	bh=W6BOgWpZmhTnY+hSGwpbi4PA2zIvon+9dtMvacpJDLE=;	h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References;	b=ID71rU5ee9lxwqny32+RS0/SzHDc3a2Md5DebJ+DyJ0DgOZjH3Ud/dTqX/kuXKJFa	 ps+MZCYkq0naL988xNHX+/yxgXXEH1Fem/EK9W/onqbQNaWgr/E+cXQ2nY6BIq5Hjy	 69/w5ridoiiEgxS/Mnjq7SeR3FM3QkgWqFJjLKKY=
Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Sun, 19 Aug 2018 19:31:31 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <416708705.20180819193131@yandex.ru>
To: Thomas Wolff <towo@towo.net>, cygwin@cygwin.com
Subject: Re: Fw: When scrolling through history in cygwin terminal window line gets garbled
In-Reply-To: <6277147e-67be-fa75-6dcd-812bcdd42f1f@towo.net>
References: <1372072396.8455798.1534430210374.ref@mail.yahoo.com>   <1372072396.8455798.1534430210374@mail.yahoo.com>  <1179039299.9023936.1534512963906@mail.yahoo.com>  <252738798.20180819124725@yandex.ru>  <6277147e-67be-fa75-6dcd-812bcdd42f1f@towo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Thomas Wolff!

>> I can confirm this behavior.
> How did you reproduce it? I don't.

Exactly as described.
Start Cygwin using cygwin.bat
Enter command
echo ABCDEF ABCDEF ABCDEF ABCDEF
Enter command
echo 6789 123456789 123456789 123456789 123456789 123456789 123456789
Tap twice to pull the first entered command from history.
Observe part of the second command remaining on the screen.

I tried playing with locale and chcp settings to no apparent effect.

>> Given the position of cut-off, it appears the problem is in wrong character
>> width to terminal position count translation.
> All the fuzzy test case descriptions in this thread so far were
> ASCII-only, so I'm puzzled about your conclusion as I see no
> double-width or combining characters involved.

> Maybe someone could care to provide a *reproducible test case*.

Try with Win7 or not "new" Win10 native console.


-- 
With best regards,
Andrey Repin
Sunday, August 19, 2018 19:10:04

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

