delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/23/06:34:04

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:content-transfer-encoding;
q=dns; s=default; b=TOacD1F+WOx20p1siGc2WAypaw4F8wGR1Eo5MeTHJPp
t4GEZBMvW3Eq48VKa666SHLggNz2Gkit2/LN9+MrWTsALsGhcSb+6MDmNIF0/ESg
tlVheCNSTTpiV6kVApjSQq2jdHcaDQVIs7Png6vCB36KHCgVWqsYaao4dixLPbCQ
=
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:content-transfer-encoding;
s=default; bh=W1tupCigujW+guZkc1G9NIjEy2I=; b=im1M14x/UapdUu47Q
NZZfCR+D/k3oH1A7Lioa2gMONgxjMD55aQtd2m1G3zIizWfLfk5yBOrIQMMUKn8m
BDwJSyqPBFaK0SF+NROUbBHZTG/dEIiW+VHKRuFIxKZ28OvLuQ7aEQ1iLyeN66IG
lpymyBMk6RZ6UkL59FiYhOYh5c=
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-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=murase, Koichi, H*MI:sk:EPQk6fp, H*MI:sk:b6fd023
X-HELO: conssluserg-06.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 00NBWtRG031721
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1579779176; bh=oq3WHgzQ+TClpdaatigjOx6S8zSU+TZE0B+3QZcUSdk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=QvOyaDRyBl8VTT/7oTqDk0YPFaDP0ZA40joqg06Cyce5UbwWyRfeNjk7AjEzcGNVS hPP8OJtPP9EGUPzXo6wNqwHK0yJo/vqleCDXZxl0HxrAX+akm8gG/08oMLpzmgd4oS vzOBJz2I5m4aqFxTDXkMJmLxsdKP710FdHM2yyheFaOfaXgk4FVwZQROD9DGxtzkaC G0DptqVWNhFwi3Pjw+NZ7+G/DNvF4of56IqVGp2e9AOQk2Jdn9aYcIcI/BOkw40Apg xsuSpX2df3wL910LoFXEfbpvTNPyWm5GctY35dnBzB9rsudyNTnvU945k5gcV4e+/J bV+TgDnegug8A==
Date: Thu, 23 Jan 2020 20:33:09 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 3.3.0: The programs compiled with "-mwindows" cannot read more than one byte from noncanonical mode TTY
Message-Id: <20200123203309.dd0c36288fdce0d79ef4d14d@nifty.ne.jp>
In-Reply-To: <CAFLRLk_ScCTNBfqR63MNuqDRWc36DGQJXAwoLVK1Zd-JrUycXw@mail.gmail.com>
References: <CAFLRLk8vtVeqB50Trr5BfkPq3HRxkKxyetBO_mieVYKUtccEaA AT mail DOT gmail DOT com> <b6fd0235-e921-d464-662b-36ec6acbaa55 AT gmail DOT com> <CAFLRLk-gUTRWzKsZgj_wxQHYizOk47jRk5gutEGj+EPQk6fp0Q AT mail DOT gmail DOT com> <20200121114747 DOT d685f0be18276ee1d5002854 AT nifty DOT ne DOT jp> <CAFLRLk_ScCTNBfqR63MNuqDRWc36DGQJXAwoLVK1Zd-JrUycXw AT mail DOT gmail DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

On Thu, 23 Jan 2020 18:49:04 +0800
Koichi Murase wrote:
> 2020$BG/(B1$B7n(B21$BF|(B($B2P(B) 10:47 Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>:
> > Thanks for the report. I could reproduce the problem under LANG=ja_JP.UTF-8.
> > I have almost caught the culprit. Please wait for a while.
> 
> Thank you for the patch fixing the problem. I cherry-picked the patch
> and tried it, but there is another problem.
> 
> Description:
> 
>   The programs compiled with "-mwindows" cannot read more than one
>   character from PTY in a non-canonical mode in .  There was no
>   problem before the patch "Cygwin: pty: Fix reopening slave in
>   push_to_pcon_screenbuffer().".
> 
> Repeat-By:
> 
>   1. Open Cygwin Terminal (mintty)
> 
>   2. Compile the attached program with the following commands.
> 
>     $ g++ -o minimal2-con.exe minimal2.cpp
>     $ g++ -mwindows -o minimal2-win.exe minimal2.cpp
> 
>   3. The expected behavior can be checked with `minimal2-con'.  After
>     executing the command, please type some five characters.  The
>     string `[RECV]' will be printed five times, and then the program
>     will exit.
> 
>     $ ./minimal2-con
>     [RECV][RECV][RECV][RECV][RECV]
>     $
> 
>   4. However, with the compile option "-mwindows", we can only see one
>     `[RECV]', and the program will hang.
> 
>     $ ./minimal2-win
>     [RECV]

Thanks for the report again. Apparently, close() before reopening slave
which I added just in case was superfluous. I will submit a patch for
this issue.

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

--
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

- Raw text -


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