delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/02/07:05:31

X-Recipient: archive-cygwin AT delorie DOT 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:to:subject:message-id:in-reply-to
:references:mime-version:content-type; q=dns; s=default; b=FcBPY
xDk8AjCB6AYLaU1bgUUP8CFLM4DxuXLkRjdDiNxwecESEqJjVJcz1HLLr+sC7PRS
UtWnsrT4dpHG28eOvSoIAd6zeoJ8isfG32GAN4aQPt+rn85CCBBq/5pKSI1h/R5b
pqcRc7s6muPE3G8rvWMRDCVjkhlvOkTHjczvYI=
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:to:subject:message-id:in-reply-to
:references:mime-version:content-type; s=default; bh=WIbHpFnH/W+
1/BZyvxiOB6aSYHk=; b=pmApvC8138fsp42Sgc5eEABAUXW4KmB+HoQ+HHa2vYO
5qmydgpk+1LsObb1bj9L2r4+9jrNej7M8mHLCaJDYVlKFeW3r1fDspP5cUs5ljYu
DrU/FBL9WJ747WIREFXv//MKf/yUiyQxEizfP4n0nqt9HCFvLvzz57K/zBnzDTms
=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_DUL,SPF_PASS autolearn=ham version=3.3.2
X-HELO: conuserg004-v.nifty.com
X-Nifty-SrcIP: [121.93.68.199]
Date: Mon, 2 Mar 2015 21:05:08 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: TIOCPKT mode of PTY is broken if ONLCR bit is cleared.
Message-Id: <20150302210508.1be5c1ed4753508431842913@nifty.ne.jp>
In-Reply-To: <20150228135947.GZ11124@calimero.vinschen.de>
References: <20150228143653 DOT ab0a6bf854db294105e1d5f3 AT nifty DOT ne DOT jp> <20150228135947 DOT GZ11124 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
X-IsSubscribed: yes

--Multipart=_Mon__2_Mar_2015_21_05_08_+0900_FGv=tf_NP/dX9sQo
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Sat, 28 Feb 2015 14:59:47 +0100
Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:

> As soon as we have your CA, we can discuss this patch further.

Can I send CA form by e-mail? Or should I send it as a postal mail?

> For the time being, your patch is lacking a ChangeLog entry.  I scanned
> your patch a bit, and it looks pretty good, but I'll need some more
> explanations and the patch should definitely be made against current
> CVS (soon to be git), not the latest release version.

Thank you for advice. I have revised the patch to follow your direction.
Please find new patch attached.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

--Multipart=_Mon__2_Mar_2015_21_05_08_+0900_FGv=tf_NP/dX9sQo
Content-Type: application/octet-stream;
 name="cygwin.patch.20150302"
Content-Disposition: attachment;
 filename="cygwin.patch.20150302"
Content-Transfer-Encoding: base64

SW5kZXg6IHNyYy93aW5zdXAvY3lnd2luL0NoYW5nZUxvZwo9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL3NyYy9zcmMvd2luc3VwL2N5
Z3dpbi9DaGFuZ2VMb2csdgpyZXRyaWV2aW5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ytd
ID0gYnVmW3JjKytdOworCQkgICAgICBnZXRfdHR5cCAoKS0+Y29sdW1uID0g
MDsKKwkJICAgIH0KKwkJICBicmVhazsKKwkJY2FzZSAnXG4nOgorCQkgIGlm
IChnZXRfdHR5cCAoKS0+dGkuY19vZmxhZyAmIE9OTENSKQorCQkgICAgewor
CQkgICAgICBvdXRidWZbbisrXSA9ICdccic7CisJCSAgICAgIGdldF90dHlw
ICgpLT5jb2x1bW4gPSAwOworCQkgICAgfQorCQkgIGlmIChnZXRfdHR5cCAo
KS0+dGkuY19vZmxhZyAmIE9OTFJFVCkKKwkJICAgIGdldF90dHlwICgpLT5j
b2x1bW4gPSAwOworCQkgIG91dGJ1ZltuKytdID0gYnVmW3JjKytdOworCQkg
IGJyZWFrOworCQlkZWZhdWx0OgorCQkgIG91dGJ1ZltuKytdID0gYnVmW3Jj
KytdOworCQkgIGdldF90dHlwICgpLT5jb2x1bW4gKys7CisJCSAgYnJlYWs7
CisJCX0KKwkgICAgfQorCSAgcmVzID0gV3JpdGVGaWxlIChoLCBvdXRidWYs
IG4sICZuLCBOVUxMKTsKKwkgIGlmICghcmVzKQorCSAgICBicmVhazsKKwkg
IHB0ciA9IChjaGFyICopIHB0ciArIHJjOworCSAgdG93cml0ZSAtPSByYzsK
Kwl9CisKKyAgICAgIHJlbGVhc2Vfb3V0cHV0X211dGV4ICgpOworICAgIH0K
KyAgbGVuIC09IHRvd3JpdGU7CisgIHJldHVybiByZXM7Cit9CkluZGV4OiBz
cmMvd2luc3VwL2N5Z3dpbi9zZWxlY3QuY2MKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PQpSQ1MgZmlsZTogL2N2cy9zcmMvc3JjL3dpbnN1cC9jeWd3aW4vc2Vs
ZWN0LmNjLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjIyMwpkaWZmIC11IC1w
IC1yMS4yMjMgc2VsZWN0LmNjCi0tLSBzcmMv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ZSA9IGZhbHNlOworICBjb2x1bW4gPSAwOwogfQogCiBIQU5E
TEUKSW5kZXg6IHNyYy93aW5zdXAvY3lnd2luL3R0eS5oCj09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvc3JjL3NyYy93aW5zdXAvY3ln
d2luL3R0eS5oLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjM3CmRpZmYgLXUg
LXAgLXIxLjM3IHR0eS5oCi0tLSBzcmMvd2luc3VwL2N5Z3dpbi90dHkuaAky
MyBBcHIgMjAxMyAwOTo0NDozNCAtMDAwMAkxLjM3CisrKyBzcmMvd2luc3Vw
L2N5Z3dpbi90dHkuaAkyIE1hciAyMDE1IDEwOjU5OjIzIC0wMDAwCkBAIC02
Nyw3ICs2Nyw4IEBAIHB1YmxpYzoKICAgICogLUVSUk5PCiAgICAqLwogICBp
bnQgaW9jdGxfcmV0dmFsOwotICBpbnQgd3JpdGVfZXJyb3I7CisKKyAgaW50
IGNvbHVtbjsJLyogQ3VycmVudCBDb2x1bW4gKi8KIAogICB2b2lkIHNldG50
dHkgKF9tYWpvcl90IHQsIF9taW5vcl90IG4pIHtudHR5ID0gKGZoX2Rldmlj
ZXMpIEZIREVWICh0LCBuKTt9CiAgIGRldl90IGdldG50dHkgKCkgY29uc3Qg
e3JldHVybiBudHR5O30K


--Multipart=_Mon__2_Mar_2015_21_05_08_+0900_FGv=tf_NP/dX9sQo
Content-Type: text/plain; charset=us-ascii

--
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
--Multipart=_Mon__2_Mar_2015_21_05_08_+0900_FGv=tf_NP/dX9sQo--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019