delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/20/21:48:43

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=g+9LqLynFPA3+LQJqXlM5rdlzrpmaZ5Xjsm95MAFVau
yCWWhXm89dyIeMkZxhyiaD71LD8armW/sbo9Xsi/u9fo5xGbeghJdYzRBH174xQ2
D6ZupxQo03dR7lvcnnukaMC8mLcuv1aIgAenh5kfB/i2UrmfrNYNIIqP/T39ct8A
=
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=qKqyscg4+89ZazAdxi3hVwCY4i8=; b=JxNqJxLSISE965nXd
TGOYATWs9FdvrRUSo8mlgufmDYwFHl6WJCWPX051LmlVZ35loOqc+l0u6icv6meI
3aJWT2fCBkwz07RddISl38eF6HkOJTmz+voFJCs7FtsKNwWe7pFnCy7SPdqCWjru
rtQSrD1jDEpEepOxfQPPgqkc4E=
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.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=BF, $BF, bf, $bf
X-HELO: conssluserg-03.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 00L2lb2c028665
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1579574858; bh=KR7vgvGy9u/PFegLcmSKY+xbb2sDKo3pOn+AB6uTUKI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=oUACuIAkXzM7BuiHkp4uOLPr904ih5BD/YoNrKI8Xz+LKsLFCDop+7u6Tkd0HRZqM ZIPMLQg5LMoY+PsXpqQvqe9OCgfaTx97SsRNf31NVXnLtMitjaC5/DZ9yP5vZTcjEr M9ENztcE/9m5HuINxqtSKKmTmcSCk3uNm+U/o9lHJGDhv2FN01AOHm9D8NcUzbQqwr qULvP/fkSkONkvA5XJaBo3qVN6rTr4Qz8SkRrTxmu8wMaaa492kTCTc32OWYeXdwYh svpSMGrJdmhJZKk1B5d+KkngQ2ROTdD3RDzkTMejPtBN6dQayGAbCdCWua3gLbOxhh MqNr98UcEu3jg==
Date: Tue, 21 Jan 2020 11:47:47 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 3.1.2: Every call of exec(2) in the session starts to create a console window after some TTY outputs from programs compiled with "-mwindows"
Message-Id: <20200121114747.d685f0be18276ee1d5002854@nifty.ne.jp>
In-Reply-To: <CAFLRLk-gUTRWzKsZgj_wxQHYizOk47jRk5gutEGj+EPQk6fp0Q@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>
Mime-Version: 1.0
X-IsSubscribed: yes

On Tue, 21 Jan 2020 10:30:48 +0800
Koichi Murase wrote:
> 2020$BG/(B1$B7n(B20$BF|(B($B7n(B) 15:17 Marco Atzeri:
> >
> > I can not replicate with latest snapshot
> >
> > $ uname -a
> > CYGWIN_NT-10.0 LAPTOP-82F08ILC 3.1.2s(0.340/5/3) 2020-01-14 16:33 x86_64
> > Cygwin
> >
> > $ mintty --version
> > mintty 3.1.0 (x86_64-pc-cygwin)
> > ...
> >
> > $ for i in {0..99}; do date; done | uniq -c
> >        6 Mon, Jan 20, 2020  8:15:49 AM
> >       18 Mon, Jan 20, 2020  8:15:50 AM
> >       19 Mon, Jan 20, 2020  8:15:51 AM
> >       16 Mon, Jan 20, 2020  8:15:52 AM
> >       20 Mon, Jan 20, 2020  8:15:53 AM
> >       21 Mon, Jan 20, 2020  8:15:54 AM
> 
> Thank you for the information.  I found that the locale also matters.
> The problem is not yet fixed in the snapshot and also the latest
> commit of the git repository.
> 
> 
> Repeat-By:
> 
>   I update the steps to reproduce the problem:
> 
>   1. Open Cygwin Terminal
>   2. Run the following commands
> 
>     $ LANG=ja_JP.UTF-8
>     $ mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
> 
> 
> Locale:
> 
>   I found that the problem is reproduced when LANG=ja_JP.UTF-8.  I
>   tried LANG=C and LANG=en_US.UTF-8, but the problem was not present
>   with these locales.  I tried several locales as follows.  It appears
>   it is related to multi-byte character sets, and also the problem
>   does not occur if UTF-8 is not specified.
> 
>   * Not reproduced with: en_US.UTF-8, en_GB.UTF-8, de_DE.UTF-8,
>     fr_FR.UTF-8, ru_RU.UTF-8, ja_JP
> 
>   * Reproduced with: ja_JP.UTF-8, ja_JP.utf8, zh_CN.UTF-8,
>     zh_TW.UTF-8, ko_KR.UTF-8
> 
>   Next I tried to find out which locale category causes the problem,
>   but the problem is not reproduced by just specifying a locale for
>   one locale category.  I tried the following, but none reproduced the
>   problem.
> 
>     $ LANG=en_US.UTF-8 LC_CTYPE=ja_JP.UTF-8; mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
>     $ LANG=en_US.UTF-8 LC_COLLATE=ja_JP.UTF-8; mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
>     $ LANG=en_US.UTF-8 LC_MESSAGES=ja_JP.UTF-8; mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
>     $ LANG=en_US.UTF-8 LC_NUMERIC=ja_JP.UTF-8; mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
>     $ LANG=en_US.UTF-8 LC_TIME=ja_JP.UTF-8; mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
>     $ LANG=en_US.UTF-8 LC_MONETARY=ja_JP.UTF-8; mintty --version
>     $ for a in {0..99}; do date; done | uniq -c
> 
>   Other interesting observations are
> 
>   1. To reproduce the problem, LANG needs not be set to
>     ja_JP.UTF-8 when "mintty --version" runs, i.e., it can be
>     reproduced with:
> 
>     $ mintty --version
>     $ LANG=ja_JP.UTF-8
>     $ for a in {0..99}; do date; done | uniq -c
> 
>   2. Once the exec starts to create a console window, the problem
>     persists even after resetting LANG to a non-problematic one:
> 
>     $ mintty --version
>     $ LANG=en_US.UTF-8
>     $ for a in {0..99}; do date; done | uniq -c
>     <No problems>
>     $ LANG=ja_JP.UTF-8
>     $ for a in {0..99}; do date; done | uniq -c
>     <Many flashing console windows>
>     $ LANG=en_US.UTF-8
>     $ for a in {0..99}; do date; done | uniq -c
>     <Still there are many console windows>
> 
> 
> Cygwin Versions:
> 
>   In my environments, it is reproduced with the latest snapshot as
>   well.  I also tried the latest version of the git repository, but
>   the problem has not yet fixed.  I tried the following versions, but
>   with all the versions the same problem occurs:
> 
>   1. Cygwin 3.1.2
> 
>   $ uname -a
>   CYGWIN_NT-10.0 letsnote2019 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64
>   Cygwin
> 
>   2. Snapshot 2020-01-14 from https://cygwin.com/snapshots/
> 
>   $ uname -a
>   CYGWIN_NT-10.0 letsnote2019 3.1.2s(0.340/5/3) 2020-01-14 16:33 x86_64
>   Cygwin
> 
>   3. Commit 85aff2830 from git://sourceware.org/git/newlib-cygwin.git
> 
>   $ uname -a
>   CYGWIN_NT-10.0 letsnote2019 3.1.2(0.340/5/3) 2020-01-19 15:12 x86_64
>   Cygwin
> 
>   4. Commit 4261a8f5c from git://sourceware.org/git/newlib-cygwin.git
> 
>   $ uname -a
>   CYGWIN_NT-10.0 letsnote2019 3.1.2(0.340/5/3) 2020-01-21 00:57 x86_64
>   Cygwin
> 
>   Also, this is not a specific problem of one computer because I tried
>   with two laptops and both reproduce the same problem.

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.

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