From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tom.rz.uni-passau.de (tom.rz.uni-passau.de [132.231.51.4]) by sourceware.org (Postfix) with ESMTPS id 0A65E3851C24 for ; Sun, 5 Jun 2022 14:17:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0A65E3851C24 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ads.uni-passau.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=ads.uni-passau.de Received: from puremessage.rz.uni-passau.de (puremessage.rz.uni-passau.de [132.231.51.54]) by tom.rz.uni-passau.de (Postfix) with ESMTP id 4617E16D402A0 for ; Sun, 5 Jun 2022 16:17:28 +0200 (CEST) Received: from puremessage.rz.uni-passau.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 2D09D107082_29CBAF8B for ; Sun, 5 Jun 2022 14:17:28 +0000 (GMT) Received: from tom.rz.uni-passau.de (tom.rz.uni-passau.de [132.231.51.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by puremessage.rz.uni-passau.de (Sophos Email Appliance) with ESMTPS id 2445D104940_29CBAF8F for ; Sun, 5 Jun 2022 14:17:28 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by tom.rz.uni-passau.de (Postfix) with ESMTP id F1EFE16D4029F for ; Sun, 5 Jun 2022 16:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-passau.de; s=up-2020-11-19; t=1654438648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=cmRpJgXn/32D6a2//BTfL0lRk2Wv/jDkhVv2/ikM+Lo=; b=nqJYP0s1ELrPgYApnGwyPNSrtMBW1qwBufqhe4P+6XwGuwEMgpdxJOhArry7hUjao66wAm q4/OeiaGadS9b1adcZWHo0WWlphfWszwPFKx3yhdep4KSs5iR0hSpz3JCDubHYsdHkELGl 62l4F7qz6BcOWXDqsRfZ1HNxPsXpPOE= Received: from [10.42.1.10] (helo=MSXSMTP.ads.uni-passau.de) by mail.uni-passau.de with ESMTPS (eXpurgate 4.39.1) (envelope-from ) id 629cbaf7-29aa-84e733040019-0a2a010a8a91-3 for ; Sun, 05 Jun 2022 16:17:27 +0200 Received: from MSXPO4.ads.uni-passau.de (10.42.1.24) by MSXSMTP.ads.uni-passau.de (10.42.1.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Sun, 5 Jun 2022 16:17:26 +0200 Received: from MSXPO1.ads.uni-passau.de (10.42.1.21) by MSXPO4.ads.uni-passau.de (10.42.1.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Sun, 5 Jun 2022 16:17:27 +0200 Received: from MSXPO1.ads.uni-passau.de ([fe80::9bc:eb7b:ad1a:b81]) by MSXPO1.ads.uni-passau.de ([fe80::9bc:eb7b:ad1a:b81%12]) with mapi id 15.01.2375.024; Sun, 5 Jun 2022 16:17:27 +0200 From: "Mexis, Nico" To: "cygwin@cygwin.com" Subject: Readline not working correctly with cygwin1.dll in same directory Thread-Topic: Readline not working correctly with cygwin1.dll in same directory Thread-Index: AQHYeOX4cAQjeTnAUkynqR146GpCiA== Date: Sun, 5 Jun 2022 14:17:27 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [132.231.56.121] MIME-Version: 1.0 X-purgate-ID: 151291::1654438647-0261733A-3A0811FF/0/0 X-purgate-type: clean X-purgate-size: 8162 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, HTML_MESSAGE, SPF_HELO_NONE, SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2022 14:17:32 -0000 > On Fri, 3 Jun 2022 18:37:29 +0000 > "Mexis, Nico" wrote: > > Dear CygWin team, > > > > this is my first bug report and I hope I have chosen the right recipien= ts here. > > I am very sorry if this is the wrong address. > > > > Here is my bug report: > > Currently, I am trying to compile a software for commutative algebra, n= amely CoCoA 5, using CygWin. > > The compilation itself is working correctly and finishes as expected. > > CoCoA 5 uses readline in order to facilitate inputs from the console. > > When starting the resulting executable within CygWin bash, readline and= all of its features work correctly. > > Also, as long as CygWin's DLLs are within Windows's PATH, in the defaul= t (and new) Windows Terminal, everything is working fine. > > However, when trying to create a distributable zip file with all the li= braries included, something strange happens: > > In order to allow users without a CygWin installation to start CoCoA 5,= all the required DLLs need to be distributed together with the application= itself. > > All the required libraries could be found using DependencyWalker and cy= gcheck. > > Of course, as expected, cygwin1.dll is one of the required DLLs. > > As soon as I place cygwin1.dll in the installation directory where CoCo= A 5's executable resides, readline support breaks. > > For some reason, the input line behaves very strangely, e.g., backspace= and the arrow keys are not working correctly. > > All of the other DLLs (including cygreadline7.dll) can reside in the in= stallation directory without causing trouble. > > But as soon as cygwin1.dll is also added in the installation directory,= this bug reappears. > > > > Another strange observation: > > This problem does not seem to only affect CoCoA 5, but also many other = similar applications like PARI/GP. > > As soon as cygwin1.dll is copied into the same directory as the applica= tion's exe, this strange bug appears. > > > > Sadly, I do not know about a fix yet since cygwin1.dll is needed for al= l users without a local CygWin installation. > > But - in turn - adding cygwin1.dll causes this bug which makes the cons= ole application very uncomfortable to use. > > > > I would be very happy if you know a fix for this strange issue since I = could not find something similar online. > > Best regards and thank you very much in advance, > > If the program depends on cygncurses*.dll, it also needs > /usr/share/terminfo. > > It should be placed in the relative path ../usr/share/terminfo > from the directory where cygwin1.dll exists. > > -- > Takashi Yano Dear Takashi, thank you very much for this information! At first, I had trouble getting your approach to work. CoCoA 5.4.0 needs to be installed exactly in C:\cocoa-5.4 and I made a syml= ink to overcome this restriction. Thus, I needed to place the terminfo folder relative to the actual installa= tion folder and not in C:\usr\share. Now, everything seems to work fine. Thank you very much! However, I still have one follow-up question about this: Is there a way to get rid of the need for the terminfo folder or change its= location? It would be ideal to not need to include it in the distribution at all or s= uch that it will be in the same folder as cygwin1.dll. Again, thank you very much in advance and Best regards, Nico Mexis