Re: /dev/null regression in Cygwin 3.6.1

2025-04-20 Thread Takashi Yano via Cygwin
On Sun, 20 Apr 2025 19:15:42 +0200 Bruno Haible wrote: > Hi, > > Takashi Yano wrote: > > > > Thanks for the new testcase. I think the issue has been fixed in: > > > > cygwin-3.7.0-0.68.g37c49decc835 (Test) > > > > > > Thanks. > > > > > > > Please test. > > > > > > Sorry, I don't know how to bui

Re: /dev/null regression in Cygwin 3.6.1

2025-04-20 Thread Bruno Haible via Cygwin
Hi, Takashi Yano wrote: > > > Thanks for the new testcase. I think the issue has been fixed in: > > > cygwin-3.7.0-0.68.g37c49decc835 (Test) > > > > Thanks. > > > > > Please test. > > > > Sorry, I don't know how to build Cygwin from git. I can only test > > releases. > > Now, cygwin-3.7.0-0.68

Re: /dev/null regression in Cygwin 3.6.1

2025-04-19 Thread Takashi Yano via Cygwin
On Tue, 15 Apr 2025 11:33:55 +0200 Bruno Haible wrote: > Takashi Yano wrote: > > Thanks for the new testcase. I think the issue has been fixed in: > > cygwin-3.7.0-0.68.g37c49decc835 (Test) > > Thanks. > > > Please test. > > Sorry, I don't know how to build Cygwin from git. I can only test > rel

Re: /dev/null regression in Cygwin 3.6.1

2025-04-15 Thread Brian Inglis via Cygwin
On 2025-04-15 06:58, Takashi Yano via Cygwin wrote: On Tue, 15 Apr 2025 06:43:33 -0600 Brian Inglis via Cygwin wrote: On 2025-04-15 03:33, Bruno Haible via Cygwin wrote: Takashi Yano wrote: Thanks for the new testcase. I think the issue has been fixed in: cygwin-3.7.0-0.68.g37c49decc835 (Test

Re: /dev/null regression in Cygwin 3.6.1

2025-04-15 Thread Takashi Yano via Cygwin
On Tue, 15 Apr 2025 21:58:19 +0900 Takashi Yano via Cygwin wrote: > On Tue, 15 Apr 2025 06:43:33 -0600 > Brian Inglis via Cygwin wrote: > > On 2025-04-15 03:33, Bruno Haible via Cygwin wrote: > > > Takashi Yano wrote: > > >> Thanks for the new testcase. I think the issue has been fixed in: > > >

Re: /dev/null regression in Cygwin 3.6.1

2025-04-15 Thread Takashi Yano via Cygwin
On Tue, 15 Apr 2025 06:43:33 -0600 Brian Inglis via Cygwin wrote: > On 2025-04-15 03:33, Bruno Haible via Cygwin wrote: > > Takashi Yano wrote: > >> Thanks for the new testcase. I think the issue has been fixed in: > >> cygwin-3.7.0-0.68.g37c49decc835 (Test) > > > > Thanks. > > > >> Please test.

Re: /dev/null regression in Cygwin 3.6.1

2025-04-15 Thread Brian Inglis via Cygwin
On 2025-04-15 03:33, Bruno Haible via Cygwin wrote: Takashi Yano wrote: Thanks for the new testcase. I think the issue has been fixed in: cygwin-3.7.0-0.68.g37c49decc835 (Test) Thanks. Please test. Hi Takashi, Could you please deploy your CI test build so Bruno can select it from a mirror

Re: /dev/null regression in Cygwin 3.6.1

2025-04-15 Thread Bruno Haible via Cygwin
Takashi Yano wrote: > Thanks for the new testcase. I think the issue has been fixed in: > cygwin-3.7.0-0.68.g37c49decc835 (Test) Thanks. > Please test. Sorry, I don't know how to build Cygwin from git. I can only test releases. Bruno -- Problem reports: https://cygwin.com/problems.ht

Re: /dev/null regression in Cygwin 3.6.1

2025-04-15 Thread Takashi Yano via Cygwin
On Mon, 14 Apr 2025 15:03:16 +0200 Bruno Haible wrote: > Here's a smaller reproducer. > > foo.c > #include > #include > #include > > int main () > { > HANDLE h = (HANDLE) _get_osfhandle (0); > fprintf (stderr, "h = 0x%08x\n", h); >

RE: [EXTERNAL] Re: /dev/null regression in Cygwin 3.6.1

2025-04-14 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> (correct me if I'm wrong), READING from /dev/null is > undefined and may result in undetermined behavior. That's an incorrect recollection of facts, unfortunately. Reading from /dev/null should result in an immediate EOF (0 returned from read()). > But "< /dev/null" literally means "don't read

Re: /dev/null regression in Cygwin 3.6.1

2025-04-14 Thread Jeremy Drake via Cygwin
On Mon, 14 Apr 2025, Bruno Haible via Cygwin wrote: > Especially since this commit modified select.cc, removing a comment > /* TODO: Buffer really full or non-Cygwin reader? */ > and here we are exactly in that case: a non-Cygwin process reading from > Cygwin's /dev/null. That's Cygwin's select

Re: /dev/null regression in Cygwin 3.6.1

2025-04-14 Thread Bruno Haible via Cygwin
Here's a smaller reproducer. foo.c #include #include #include int main () { HANDLE h = (HANDLE) _get_osfhandle (0); fprintf (stderr, "h = 0x%08x\n", h); fprintf (stderr, "FileType is CHAR ? %d\n", GetFileType (h) == FILE_TYPE_CHA

Re: /dev/null regression in Cygwin 3.6.1

2025-04-14 Thread Andrey Repin via Cygwin
Greetings, Bruno Haible! > In Gnulib, we have a unit test that compiles the program below as a > native Windows program (either with mingw or with MSVC), that exercises > the Gnulib select() function > >

Re: /dev/null regression in Cygwin 3.6.1

2025-04-14 Thread Takashi Yano via Cygwin
Hi Bruno, On Sat, 12 Apr 2025 15:21:12 +0200 Bruno Haible wrote: > Hi, > > In Gnulib, we have a unit test that compiles the program below as a > native Windows program (either with mingw or with MSVC), that exercises > the Gnulib select() function > >

/dev/null regression in Cygwin 3.6.1

2025-04-12 Thread Bruno Haible via Cygwin
Hi, In Gnulib, we have a unit test that compiles the program below as a native Windows program (either with mingw or with MSVC), that exercises the Gnulib select() function