From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by sourceware.org (Postfix) with ESMTPS id 63F573857C48 for ; Wed, 2 Sep 2020 11:03:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 63F573857C48 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Johannes.Schindelin@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599044608; bh=EH7IF0B2C2+p9SjtXz5y/xPYqJYRmhZVGGrJyCa6XMY=; h=X-UI-Sender-Class:Date:From:To:cc:Subject:In-Reply-To:References; b=A7lGoJKKB6aDBlSDff3/NgdBonjDanPRL4WRr4sTqhw5FGawXp+dMJ3FW7J97RO2S JwLNXgnL25vTtF8/CVO12jbkFtlJxzSPjzWcrPeTMj01Fo8BC78lP1SZsQbYg3A0IV E4Eolq18pLqAUYmFNrakDGEf7h2KWteASY+PF76Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [172.18.169.176] ([89.1.214.253]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mzyuc-1kXpHq1Fhu-00x68O; Wed, 02 Sep 2020 13:03:28 +0200 Date: Wed, 2 Sep 2020 08:13:50 +0200 (CEST) From: Johannes Schindelin X-X-Sender: virtualbox@gitforwindows.org To: Takashi Yano cc: cygwin-developers@cygwin.com Subject: Re: New implementation of pseudo console support (experimental) In-Reply-To: <20200902073309.8e51552b2b9996cf15d44266@nifty.ne.jp> Message-ID: References: <20200819134156.GP3272@calimero.vinschen.de> <20200820170210.e066c8ad933ca31061130ba9@nifty.ne.jp> <20200831231253.332c66fdddb33ceed5f61db6@nifty.ne.jp> <20200831235325.c26c1a75e4cec737e793c91c@nifty.ne.jp> <9f0e8248-cc3b-b5a8-0af5-43dbdf079478@towo.net> <1104c24d-49ea-96b9-30cb-acd4460108ab@towo.net> <20200831193736.GG3272@calimero.vinschen.de> <20200901182303.76c0ab7a52553910b540f2bc@nifty.ne.jp> <20200902073309.8e51552b2b9996cf15d44266@nifty.ne.jp> User-Agent: Alpine 2.21.1 (DEB 209 2017-03-23) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Provags-ID: V03:K1:DUFN8dKdTl3pLPUqqGXhXP/vOKmnmnKlF5XubYh5BKsRy8hIKGW IGxTTJqOcGN3GoQ/9tagDML3AmP9qJudkaHgKlNxjH00XS3Avur2RTIzY4XXK36IyhlnY6F vpUrkMSnlxNJF0/xRaHkX7jJilzhSkXzErbsa67UlAQxPyPc2k6wT6YRo4lbrAYh4ZpodyQ tuBwxoTJh8bZtd7TLqqdg== X-UI-Out-Filterresults: notjunk:1;V03:K0:JjeGhoJuBi0=:bZx992r6AbMFXN+KmonnNK /GMOb+euDFT2PXebztzIKB+QNvL1DC3/jrYxRY5cy1ZZvERhAwan5cJtUTro8K61Kkx/++qZd M4Qsf7+73wBJB8lHBewndMFMKX+lyvWi80lVUXYecBSyvijT5mC4TA3Uxr7UXEdnVM/2zY1O6 5iJ6AY3q9mvqharK+o0HuSKixotYnL+95sMRicdqUT+TKie2ySLif3OcMxDeVvrnXSvGuaMpu k6qw2KF1jYTL/sOBEY3o405I+mao5ERCfJXppXeqEhB+RLg6nNilDYoDTwUwmeHIEnLwRLGfp NwbCibTLMx0q0Y8R/XghTxrF4OwZvyFAUGI6MJEJLlA6v4/SU04E93gKLF85mFqVNsLxxzwoj CpBYWTgo1mrCcYdH1UmY8B2f0bzHp8FqB1W4U08ENbEZPHmxCxk5BOwXio6/G7z3BAzXdy/7Q iq4ufY5LBw1t+WNMxAyj5WJPyoH7MrGe25mCvU+AjN4w9eIwyq2xbF+L7rQnQbCDBcXYxRBjq bvZXJ79Tbn6Ps4qX1Qoyg6MN2BiWTgD9hiYAHwSrIpAwCoX7x6VUdvvlnDOfOvmvZue3FNdYt fevZyDWU43/JmEP7f5b9ZnIcDXPSPWnUZpcv3DpINQ15zzUYpeVCjbIL4x2Ynxjz3zRnPz9Hs AWzMQlyjBfGlyoFoAUctnoiXKrEjW4q/ahDlHCqiJDUrPNnIUyHgHHoYQGn7g0aKkReCgOrt3 zUdRMz7hEFFmgtp2FqVEh77uUvAqTGiiF2QM9bKo5mhZa+zxeobKiMnszBo+N78c5azmnrIpB ZkllSFIf2m/qj/QZw05BfUEfmLNFaSlgN+AX1Zoa4k/+DWxKALr/++xIlnITazpzbnirTA2lJ MkZwgDYnYlQxtTP2lkmNScpZ6hD8iy4sUCiokVDDUgLSDNrlnRz4eBoGFDMRFF6jvuAwD/m5r guV++LO0L1axDCSMr2iFvIyavz6utZoHqzJMelum8+a5r7ku+f41dbBsYPLfwz4MRotbC4A8b DaLYGfOFp7BQv12dR/pP504tt6bo6+sBQtbffFdHZph7B82hpkVkQ1rjt8uHYeV4nqzRtiDbs LOLK8ndoc4/0c8n1KMsU6WKzXknvayOCN6zQuZq+yDDQBy1hNZF2e3OqTr4IN5K4RZSyL+3cN hOD5NS0G5Op1gONoO7XPnx4EeKfapCV/zRsXLtj9bP0MbDhuFrRpUPm9C/YsXAyV55fVn3zhY uo17SYEt67ZDUSjYEjyvmTtBAqj49jnFEq0vc8A== Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DATE_IN_PAST_03_06, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, 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: Wed, 02 Sep 2020 11:03:35 -0000 Hi, On Wed, 2 Sep 2020, Takashi Yano wrote: > On Tue, 1 Sep 2020 08:32:30 +0200 (CEST) > Johannes Schindelin wrote: > > why the code path behind `disable_pcon` does anything different > > from what v3.0.7 did. > > Thomas answered already for this question. > > On Mon, 31 Aug 2020 18:12:19 +0200 > Thomas Wolff wrote: > > The "correct" output was actually buggy behaviour, so current cygwin h= as > > "fixed" it, to your disadvantage in this case. I was under the impression that Thomas was unfamiliar with your implementation, so I kind of waited for your authoritative answer. Now, seeing how many users face real-world problems using console applications they are not necessarily equipped (or even allowed) to patch, I do see the need for a sensible default code page. Hopefully you agree that in light of this, it does not matter whether it was "actually buggy behavior". Nobody cares whether it was buggy or not, when it breaks *quite* a few existing workflows. In our case, the default code page should quite clearly be UTF-8 because that's what `/etc/profile.d/lang.sh` configures when it passes the `-U` flag to `locale` to determine the value of the `LANG` variable. I would really appreciate your help to get there. Ciao, Johannes P.S.: what you suggest implicitly to be the solution ("just call `SetConsoleOutputCP()` in your console application!") seems to be fraught with a bit of peril, see e.g. https://entropymine.wordpress.com/2020/05/06/win32-i-o-character-encoding-= supplement-1-a-cygwin-issue/