DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BBC7uxG2457917
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BBC7uxG2457917
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=k5Dh/8ZS
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3458F4BA2E32
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1765454875;
	bh=30YAUIyfttHxAkDyGOF+SJ4oGDdU8Ay9m2eQR5CdifI=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=k5Dh/8ZSK7oM4PrsEB4MGix/5bE8oVanWs8oz2Mb5Pvfch/CNl0cy4cb+BCR7zcgJ
	 QLz/UMYSwZ7vuaJSoA65gLW30bkTfAcczafrizNFxVvMCQH3HEg9sTdbnzx7lrKiY2
	 7uS8xme/Fa8VriWC/14D9hzzUSg9TjmFzoTQ+YsE=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3903A4BA2E1D
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3903A4BA2E1D
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765454823; cv=none;
 b=p+VhzyZyFGQKjwVE5XFVOK0Byzy1a4nl1ErcL86y9g9AYRt1tccOBIkiFlVkRAGttTgtm1LAl+W4jteHXF0xJvv7v8ToKJuPLnG2J1NmCWpmNTeaxdco5SUtOWnXQ243zLTFy98PHs9HSBZN2+JhJ1oKVy4VbNWIV2Ru5QGmt1o=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1765454823; c=relaxed/simple;
 bh=Xs7VLLK8hMrhBUmdFXvzl4eFKjkqS975ipgTmTkLgKA=;
 h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
 b=agpuDcxE61wl1/J17t+H31ePv9/VBhUxjMTza9g014qhk3+Yu8Xfj2CMBaPmxGbhYFFdtCRMcPWG0FE8mENHMZkJ6QR2+2v77V4d4c5pYeo9qx+9Bz9ehnVP1LBofFtp9NUUPzQFGjqPd6NZ+zFDMxxFknbX3WObpdDVFHItun0=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3903A4BA2E1D
Date: Thu, 11 Dec 2025 21:06:58 +0900
To: cygwin@cygwin.com
Subject: Re: dynamic conpty loading
Message-Id: <20251211210658.993ac33f7744ca5e6a75ba67@nifty.ne.jp>
In-Reply-To: <7a237de9-ec11-4c41-a873-b37715b436a1@towo.net>
References: <f52d9663-b210-497a-867b-5193b420ea0b@towo.net>
 <30deef29-ba20-49d9-9b38-28020941b0ef@towo.net>
 <707f4d4c-a20d-4f1d-bdbd-65a2392dea15@towo.net>
 <20251121190433.4a37dc959848a0aea89a8922@nifty.ne.jp>
 <62f3c1ae-1fd9-477d-a837-d865094dab06@towo.net>
 <aSCXcoeDbrGOrUTu@calimero.vinschen.de>
 <cc6b613b-1c02-41e3-b045-5b1723b706ab@towo.net>
 <20251126193220.1b890f58a121add2f0d05fa5@nifty.ne.jp>
 <3a6ed5bc-24fd-42b0-9f57-83c8eb678a1b@towo.net>
 <20251127172026.6b6f876fd341f9c0cbd1f876@nifty.ne.jp>
 <20251203175638.0b4f51242c8fdab685ad9b7e@nifty.ne.jp>
 <1691264462.1837628.1764761641527@mail.yahoo.com>
 <20251203214927.6980d78e8956dc6c7f99c4ae@nifty.ne.jp>
 <a539ef1a-b958-492c-b271-ebaf198f4a5b@towo.net>
 <20251207064052.438f025c5cdc844632e2aba5@nifty.ne.jp>
 <7a237de9-ec11-4c41-a873-b37715b436a1@towo.net>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin@cygwin.com>
Reply-To: Takashi Yano <takashi.yano@nifty.ne.jp>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Hi Thomas,

Thanks for the reply.

On Thu, 11 Dec 2025 10:45:52 +0100
Thomas Wolff wrote:
> Hi Takashi,
> sorry, I just saw this mail right now.
> 
> Am 06.12.2025 um 22:40 schrieb Takashi Yano via Cygwin:
> > Hi Thomas,
> >
> > On Sat, 6 Dec 2025 18:48:29 +0100
> > Thomas Wolff wrote:
> >> Am 03.12.2025 um 13:49 schrieb Takashi Yano via Cygwin:
> >>> On Wed, 3 Dec 2025 11:34:01 +0000 (UTC)
> >>> matthew patton wrote:
> >>>> the libopenconsole.postinstall script ihas some glaring issues.
> >>>>
> >>>> * define strings once and then use the variable instead of repeating over and over and over the long-ass path names.
> >>>>
> >>>> * the wget to STDOUT strikes me as pointless. use curl if you're going to resort to that kind of operation. Otherwise just save the .zip to disk already without gratuitous memory buffering
> >>>>
> >>>> * /tmp should not be assumed. use $TMPDIR
> >>>>
> >>>> * use trap to clean up after yourself in both the successful and unsuccessful cases
> >>>>
> >>>> * 'POSTFIX' makes no sense. it's ARCH or PLATFORM
> >>>>
> >>>> * personally I would have versions.txt be a tab deliminted file with version_num\tsha256 of x64\tsha256 of x86 or something along those lines.
> >>> Thanks!
> >> Unfortunately, this does not work for me on Windows 10.
> >> And I cannot test on Windows 11; my previous report was bogus, I
> >> self-compiled the unpatched cygwin1.dll for a cross-test but it fails.
> >> Running bash from a Windows console, then Cygwin console works, also
> >> running wsl from there. Running `mintty -h alw` says
> >> The handle is invalid.
> >> Error code: Bash/Service/ERROR_INVALID_HANDLE
> > Thansk for testing.
> > Do you mean `mintty -h alw` works on self-compiled-unpatched
> > cygwin1.dll but does not work on self-compiled-patched cygwin1.dll?
> No, I mean in my Windows 11 system, it failed even with a self-compiled 
> unpatched cygwin1.dll, right now.
> (I was having cygwin build problems before...)
> So I took a fresh approach, fresh git clone, then followed the 
> cumbersome build instructions (which I had put into my own configure 
> wrapper and used to work before).
> Not quite understanding the purpose of that package, or the postinstall 
> script which told me
> cat: /etc/libopenconsole/version.txt: No such file or directory
> sha256sum: 
> /etc/libopenconsole/Microsoft.WindowsTerminal__x64.zip.sha256: No such 
> file or directory
> , I just copied OpenConsole.exe manually into /bin. And yes, now it 
> works in Windows 11, even with OpenConsole from WT 1.23 (which is a bit 
> surprising as there was a bug which they fixed later).
> 
> Copied the solution to Windows 10 but unfortunately it does not work 
> there. Kind regards Thomas

What happens in Windows 10 case? Does cygwin itself start and it
has a problem when starting non-cygwin app? Or does not start at all?

In my environment, patched cygwin1.dll works under both Win10 and 11.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
