| delorie.com/archives/browse.cgi | search |
| 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:mime-version:references:in-reply-to:from:date | |
| :message-id:subject:to:content-type; q=dns; s=default; b=rHoDg+4 | |
| eUXTre+QdUQ5tG2Jenu0dpfnHsDF/zWreONVMj9YjO1cyfcNBuhdwtFTn/ptNDE8 | |
| rT5qi57AuHhXtv63DczSN4q/yjeNudqZYcImIqqiE9yP9rerTds6uRAbj4E+YUYo | |
| O8hAp0TpDeq6Vq8Ul6iKYpBuBhgST1vOuOg0= | |
| 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:mime-version:references:in-reply-to:from:date | |
| :message-id:subject:to:content-type; s=default; bh=mo16I6F/NOFsj | |
| LkD1XJVV2oT0Tk=; b=R4W1W6ArpE2I5WMqvVANnmk5UbE/CT2M7JCuLcHObqh01 | |
| 8pvff1oFV4BQl+XuAzaWPKbI5Bh95pqx31W/azrmmfCppYg8NQobhgiDfYlv088+ | |
| novGC33sl2cP3QLq3nxnAKKRa6Lfu+2dz6EIJ7gPeYcTP+UY61KuUBYkKaR7zY= | |
| 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=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=culprit |
| X-HELO: | mail-lf1-f48.google.com |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ZsuHRQrSPg1S1LhdSMkxTCyrlfcXYBXTktQboV6iquY=; b=T2SMBvTZEAqI7Lo6+tOktA2s6AGGfZoPmrTckUrGgwFnLUbS6ybPUEg+KUWFa4jCw3 k7bCwI3Up0FhYxwud4R2OdvsIw70thml71TDqrt79a4Lrd6WQwVa7twXJX5HAGklrgwR s0vTj8hRSy4opzeZarcCYwE2tUY9zARAHZx0PWkZPiZ/oNlHv/VRN3u85VOT1yDy00Eu qfPgQFjeW5FtBvek/0SnjKSe03cVYYmX9DuPA4zKteqyl1XWsKqec1czgv7GIjl0GaZL aAUCMYFA+JoRq0YLZalhehKaFHhHnWedz7iTbOOIPucpbH1TdneUU+c1FtQfY+EyBAp0 Jtxg== |
| MIME-Version: | 1.0 |
| 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> |
| In-Reply-To: | <20200121114747.d685f0be18276ee1d5002854@nifty.ne.jp> |
| From: | Koichi Murase <myoga DOT murase AT gmail DOT com> |
| Date: | Thu, 23 Jan 2020 18:49:04 +0800 |
| Message-ID: | <CAFLRLk_ScCTNBfqR63MNuqDRWc36DGQJXAwoLVK1Zd-JrUycXw@mail.gmail.com> |
| Subject: | Cygwin 3.3.0: The programs compiled with "-mwindows" cannot read more than one byte from noncanonical mode TTY |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
--000000000000709669059ccc64e0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
2020=E5=B9=B41=E6=9C=8821=E6=97=A5(=E7=81=AB) 10:47 Takashi Yano <takashi.y=
ano AT nifty DOT ne DOT jp>:
> Thanks for the report. I could reproduce the problem under LANG=3Dja_JP.U=
TF-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]
Best,
Koichi
--000000000000709669059ccc64e0
Content-Type: text/x-c-code; charset="US-ASCII"; name="minimal2.cpp"
Content-Disposition: attachment; filename="minimal2.cpp"
Content-Transfer-Encoding: base64
Content-ID: <f_k5qjknmo0>
X-Attachment-Id: f_k5qjknmo0
I2luY2x1ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZSA8dGVybWlvcy5oPgoKaW50
IG1haW4oKSB7CiAgc3RydWN0IHRlcm1pb3Mgb2xkVGVybWlvczsKICB0Y2dl
dGF0dHIoU1RESU5fRklMRU5PLCAmb2xkVGVybWlvcyk7CgogIHN0cnVjdCB0
ZXJtaW9zIHRlcm1pb3MgPSBvbGRUZXJtaW9zOwogIHRlcm1pb3MuY19sZmxh
ZyAmPSB+KEVDSE8gfCBJQ0FOT04gfCBJRVhURU4gfCBJU0lHKTsKICB0ZXJt
aW9zLmNfaWZsYWcgJj0gfihCUktJTlQgfCBJQ1JOTCB8IElOUENLIHwgSVNU
UklQIHwgSVhPTik7CiAgdGVybWlvcy5jX2NmbGFnICY9IH4oQ1NJWkUgfCBQ
QVJFTkIpOwogIHRlcm1pb3MuY19jZmxhZyB8PSBDUzg7CiAgdGVybWlvcy5j
X29mbGFnICY9IH4oT1BPU1QpOwogIHRlcm1pb3MuY19jY1tWTUlOXSAgPSAx
OwogIHRlcm1pb3MuY19jY1tWVElNRV0gPSAwOwogIHRjc2V0YXR0cihTVERJ
Tl9GSUxFTk8sIFRDU0FGTFVTSCwgJnRlcm1pb3MpOwoKICBmb3IgKGludCBp
ID0gMDsgaSA8IDU7IGkrKykgewogICAgY2hhciBjOwogICAgaW50IGNvbnN0
IG5yZWFkID0gcmVhZChTVERJTl9GSUxFTk8sICZjLCAxKTsKICAgIHdyaXRl
KFNURE9VVF9GSUxFTk8sIG5yZWFkID4gMCA/ICJbUkVDVl0iIDogIltGQUlM
XSIsIDYpOwogIH0KICB0Y3NldGF0dHIoU1RESU5fRklMRU5PLCBUQ1NBRkxV
U0gsICZvbGRUZXJtaW9zKTsKICB3cml0ZShTVERPVVRfRklMRU5PLCAiXG4i
LCAxKTsKICByZXR1cm4gMDsKfQo=
--000000000000709669059ccc64e0
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
--000000000000709669059ccc64e0--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |