From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by sourceware.org (Postfix) with ESMTPS id CD99F382C5ED for ; Fri, 3 Jun 2022 23:53:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CD99F382C5ED Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 253NrDMi025900 for ; Sat, 4 Jun 2022 08:53:13 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 253NrDMi025900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1654300393; bh=uyEMb1dtoGqiiR8ANXYyKOoZg3rvBS1UNUNChifnL2U=; h=Date:From:To:Subject:In-Reply-To:References:From; b=16a5bTYLbnMbNg35v6Nji0UiYCKzerIvsjjESyMvK/qeaumMDvhK0VxqLuCFWpVAB XVp06oJ6GL73dsNAt6WkaNiPa5kKZson7anMK6GJMJ0FuNWXm0s8+uGXFw5kNEXNtf PKDIwuA7fjpNmsFHnVBmAhMaIFdeCEOqBXmQl0OFhkC3/UMh4nkbXgkff31XEH2ubj CO6h+eN8AD8Fx6Iv1lnISLfujj7IE4hQxxycsoLRRERgXBAAK8X67PCzaZ386HQwQu 7ADIR4X84UqxqbufNGWUykcuS21GnWN3XRZ0ZMBp2C9NR6mDf/VTXuAMr86o3VWWlf LZSYUdqHpxkwQ== X-Nifty-SrcIP: [119.150.44.95] Date: Sat, 4 Jun 2022 08:53:14 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: Readline not working correctly with cygwin1.dll in same directory Message-Id: <20220604085314.58740d42e22a134140b376ea@nifty.ne.jp> In-Reply-To: <9087f783897148ff8c47965379fd66b5@ads.uni-passau.de> References: <9087f783897148ff8c47965379fd66b5@ads.uni-passau.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 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: Fri, 03 Jun 2022 23:53:41 -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 recipients 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, namely 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 default (and new) Windows Terminal, everything is working fine. > However, when trying to create a distributable zip file with all the libraries 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 cygcheck. > Of course, as expected, cygwin1.dll is one of the required DLLs. > As soon as I place cygwin1.dll in the installation directory where CoCoA 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 installation 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 application's exe, this strange bug appears. > > Sadly, I do not know about a fix yet since cygwin1.dll is needed for all users without a local CygWin installation. > But - in turn - adding cygwin1.dll causes this bug which makes the console 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