From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52516 invoked by alias); 12 Aug 2019 19:44:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 52507 invoked by uid 89); 12 Aug 2019 19:44:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=AAA X-HELO: conssluserg-01.nifty.com Received: from conssluserg-01.nifty.com (HELO conssluserg-01.nifty.com) (210.131.2.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Aug 2019 19:44:43 +0000 Received: from Express5800-S70 (ntsitm268057.sitm.nt.ngn.ppp.infoweb.ne.jp [125.1.110.57]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x7CJicOa029821 for ; Tue, 13 Aug 2019 04:44:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x7CJicOa029821 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1565639078; bh=DMHfB2xRySWtUzSz+TGpob9Mcj0FR9aj76ipaF2rZ9Y=; h=Date:From:To:Subject:In-Reply-To:References:From; b=zj8cQtuNcCWb8awEj/i93CX0zZMSDiTd9FLc0yPb/wImQ+2PoceYFR7KUG81B8tQi 2rWlydv+RZu09mfGnumqi4ySNvmdeCejO5Cx5ia5U4fQaVu9aP1TZAaVl8cVrUcdua C8/EX5J9BH/PtsleliGov1yTWO8nArGbdIWMn35B6uxOtmDYmcb2MrrcaICuyY1+6S HPP3cOD6rVNLtceV3OAyrgGxtyQDvIxw5ebR9Sc9v0E8821KZ7XgSeJnLYfDBk8aHy dyrQ39SikJ9SlweX7FRqW1pNJ3u7drhdfsgDkl/ZJZVJ6gdXZNtHwFmut9T0LzpwMp 5V/dc4rpg/8og== Date: Mon, 12 Aug 2019 19:44:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.1 Message-Id: <20190813044451.212455aada8a12c30c3aa920@nifty.ne.jp> In-Reply-To: <20190812130152.GI11632@calimero.vinschen.de> References: <20190812130152.GI11632@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__13_Aug_2019_04_44_51_+0900_9iuvQSEBzgPX7x9." X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00152.txt.bz2 --Multipart=_Tue__13_Aug_2019_04_44_51_+0900_9iuvQSEBzgPX7x9. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-length: 2535 On Mon, 12 Aug 2019 15:01:52 +0200 Corinna Vinschen wrote: > On Aug 11 09:27, Thorsten Kampe wrote: > > * Corinna Vinschen (Fri, 9 Aug 2019 20:53:38 +0200) > > > I uploaded a new Cygwin test release 3.1.0-0.1 > > > > > > This release comes with a couple of new features and quite a few > > > bug fixes. > > > > > > The most interesting change, courtesy Ken Brown, is a revamp of the > > > old FIFO code. It should now be possible to open FIFOs multiple times > > > for writing, something the old code failed on. > > > > > > > > > Please test. > > > > I've noticed two things in connection with pspg > > (https://github.com/okbob/pspg) - a pager for tables: > > Nobody from the dev team uses this application, afaics. > > To help tracking down the cause for the problems, can you bisect > Cygwin or at least check which of the snapshots from > http://www.cygwin.com/snapshots/ introduces the problem? > > > 1. Configuring the source takes ages (for instance "checking > > whether the C compiler works..."). This is only in ConEmu, not > > in MinTTY. > > > > 2. Pager output is completely distorted: > > > > Before: > > > SELECT ArtistId FROM Chinook.dbo.Album WHERE ArtistId = 78 > > +------------+ > > | ArtistId | > > |------------| > > | 78 | > > +------------+ > > (1 row affected) > > Time: 0.356s > > > > After: > > > SELECT ArtistId FROM Chinook.dbo.Album WHERE ArtistId = 78 > > +------------+ > > | ArtistId | > > |------------| > > | 78 | > > If this all occurs in ConEmu only, it may be one of the end of March > patches which may introduce incompatibilities with ConEmu's Windows > API hooking, but that's just a blind guess: > > 6a06c6bc8f84 Cygwin: console: fix key input for native console application > f4b47827cf87 Cygwin: console: Make I/O functions thread-safe > 8382778cdb57 Cygwin: console: fix select() behaviour > bd627864ab41 Cygwin: console: support 24 bit color I looked into this problem, and found that this is due to a bug of ConEmu. Attached is the simple test case (conemu-chk.c). In command prompt, the output of this program is: AAA BBB However, in ConEmu, the output is: AAA BBB If ENABLE_VIRTUAL_TERMINAL_INPUT flag is set to console input, it affects to console output and becomes so that the newline '\n' does not cause carriage return. This is weird. Thorsten, could you please report this bug to ConEmu developers? -- Takashi Yano --Multipart=_Tue__13_Aug_2019_04_44_51_+0900_9iuvQSEBzgPX7x9. Content-Type: text/x-csrc; name="conemu-chk.c" Content-Disposition: attachment; filename="conemu-chk.c" Content-Transfer-Encoding: 7bit Content-length: 784 #include #ifndef DISABLE_NEWLINE_AUTO_RETURN #define DISABLE_NEWLINE_AUTO_RETURN 0x0008 #endif #ifndef ENABLE_VIRTUAL_TERMINAL_INPUT #define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200 #endif int main() { DWORD mode; DWORD len; GetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), &mode); mode &= ~DISABLE_NEWLINE_AUTO_RETURN; SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), mode); GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), &mode); mode |= ENABLE_VIRTUAL_TERMINAL_INPUT; SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), mode); GetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), &mode); mode &= ~DISABLE_NEWLINE_AUTO_RETURN; SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), mode); WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), "AAA\nBBB\n", 8, &len, 0); return 0; } --Multipart=_Tue__13_Aug_2019_04_44_51_+0900_9iuvQSEBzgPX7x9. Content-Type: text/plain; charset=us-ascii Content-length: 219 -- 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 --Multipart=_Tue__13_Aug_2019_04_44_51_+0900_9iuvQSEBzgPX7x9.--