From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id 49F07386F001 for ; Mon, 31 Aug 2020 14:53:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 49F07386F001 Received: from Express5800-S70 (v038192.dynamic.ppp.asahi-net.or.jp [124.155.38.192]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 07VErEwo030477; Mon, 31 Aug 2020 23:53:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 07VErEwo030477 X-Nifty-SrcIP: [124.155.38.192] Date: Mon, 31 Aug 2020 23:53:25 +0900 From: Takashi Yano To: cygwin-developers@cygwin.com Subject: Re: New implementation of pseudo console support (experimental) Message-Id: <20200831235325.c26c1a75e4cec737e793c91c@nifty.ne.jp> In-Reply-To: References: <20200722174541.c8113635236fd217cb9ebb77@nifty.ne.jp> <20200723093328.709654ea6a539cb9b3251ab2@nifty.ne.jp> <20200724143842.020cea9ffa2f6e7ffe760f67@nifty.ne.jp> <20200724202219.16ad238f515da19db21d3a6c@nifty.ne.jp> <20200803111103.27ef6554df7f40d1142bceee@nifty.ne.jp> <20200803212342.8b14a3164ed66bd521774fe4@nifty.ne.jp> <20200811201258.4bffb987ecdb96583c516bc2@nifty.ne.jp> <20200813185813.2d851113b6e134db371d35b4@nifty.ne.jp> <20200817205718.a0fcc08bf21be4ba5f10ba3d@nifty.ne.jp> <20200819203959.9d220306c58736f94381d1e6@nifty.ne.jp> <20200819134156.GP3272@calimero.vinschen.de> <20200820170210.e066c8ad933ca31061130ba9@nifty.ne.jp> <20200831231253.332c66fdddb33ceed5f61db6@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2020 14:53:56 -0000 On Mon, 31 Aug 2020 16:22:20 +0200 (CEST) Johannes Schindelin wrote: > Hi Takashi, > > On Mon, 31 Aug 2020, Takashi Yano wrote: > > > On Mon, 31 Aug 2020 14:49:04 +0200 (CEST) > > Johannes Schindelin wrote: > > > > > On Thu, 20 Aug 2020, Takashi Yano via Cygwin-developers wrote: > > > > > > > On Wed, 19 Aug 2020 15:41:56 +0200 > > > > Corinna Vinschen wrote: > > > > > Guys, > > > > > > > > > > On Aug 19 20:39, Takashi Yano via Cygwin-developers wrote: > > > > > > On Mon, 17 Aug 2020 20:57:18 +0900 > > > > > > > Adapted to the current git head. > > > > > > > > > > > > Aligned the timing of seup_locale () call with the recent pty change. > > > > > > > > > > Shall we release 3.1.7 as bugfix release and then merge this patch > > > > > and bump to 3.2.0? > > > > > > > > It might be time to do so. Thanks. > > > > > > Sorry to latch onto this thread with something slightly different, but we > > > do see pretty serious encoding problems (both with and without > > > `CYGWIN=disable_pcon`) in the Git for Windows and the MSYS2 projects. For > > > example, in https://github.com/msys2/MSYS2-packages/issues/1974 the > > > following issue was reported. If you compile a _MINGW_ program from this > > > source code: > > > > > > -- snip -- > > > #include > > > > > > int main(){ > > > puts("Привет мир! Hello world!"); > > > return 0; > > > } > > > -- snap -- > > > > > > and then execute it, you will see this output: > > > > > > -- snip -- > > > ╨ƒ╤Ç╨╕╨▓╨╡╤é ╨╝╨╕╤Ç! Hello world! > > > -- snap -- > > > > I guess your program (binary exe) does not work as you expect > > in command prompt as well. If you want to use UTF-8 coding in > > output, you should add SetConsoleOutputCP(CP_UTF8) call befere > > puts(). > > That may be, but I would like to point out that the very same executable > worked quite well in a MinTTY using v3.0.7... at the expense of garbled output for apps which use native code page of the system in the correct maner. -- Takashi Yano