Re: [PATCH] Cygwin: fhandler_fifo::raw_read: handle STATUS_PENDING

2021-11-23 Thread Takashi Yano
On Tue, 23 Nov 2021 15:59:05 -0500 Ken Brown wrote: > Patch attached. Takashi, since you wrote the analogous patch for pipes, > could > you take a look? This one also LGTM. -- Takashi Yano

Re: [PATCH] Cygwin: fhandler_pipe::raw_read: fix handle leak

2021-11-23 Thread Takashi Yano
On Tue, 23 Nov 2021 11:22:25 -0500 Ken Brown wrote: > Patch attached. LGTM. Thanks for fixing this. -- Takashi Yano

Re: possible snprintf() regression in 3.3.2

2021-11-23 Thread Takashi Yano via Cygwin
On Tue, 23 Nov 2021 10:48:21 +0100 Corinna Vinschen wrote: > On Nov 23 17:34, Takashi Yano via Cygwin wrote: > > However, in reality, for example in the case: > > snprintf(buf, sizeof(buf), "%.3f", 1234567890123456.789); > > 'ndigits' is only 3 even though total digits will be 20. > > > > So,

Re: raise(-1) has stopped returning an error recently

2021-11-23 Thread Duncan Roe
On Tue, Nov 23, 2021 at 11:18:25AM -0700, Brian Inglis wrote: > On 2021-11-23 02:50, Corinna Vinschen via Cygwin wrote: > > On Nov 23 19:27, Duncan Roe wrote: > > > On Mon, Nov 22, 2021 at 02:06:19PM +0100, cygwin wrote: > > > > On Nov 22 11:25, Corinna Vinschen via Cygwin wrote: > > > > > On Nov

[PATCH] Cygwin: fhandler_fifo::raw_read: handle STATUS_PENDING

2021-11-23 Thread Ken Brown
Patch attached. Takashi, since you wrote the analogous patch for pipes, could you take a look? Thanks. KenFrom 4f47e64b11ed8d47c62fa89e9b971f44b7e9ab75 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Tue, 23 Nov 2021 11:40:56 -0500 Subject: [PATCH] Cygwin: fhandler_fifo::raw_read: handle

Re: raise(-1) has stopped returning an error recently

2021-11-23 Thread Brian Inglis
On 2021-11-23 02:50, Corinna Vinschen via Cygwin wrote: On Nov 23 19:27, Duncan Roe wrote: On Mon, Nov 22, 2021 at 02:06:19PM +0100, cygwin wrote: On Nov 22 11:25, Corinna Vinschen via Cygwin wrote: On Nov 22 16:20, Duncan Roe wrote: #include #include int main (void) { int retcod;

Re: Program files environmental variables

2021-11-23 Thread Brian Inglis
On 2021-11-23 02:02, john doe via Cygwin wrote: Cygwins, Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in Bash: $ echo $PROGRAMFILES; echo "$PROGRAMFILES(x86)"; echo $PROGGRAMW6432 C:\Program Files C:\Program Files(x86) $ cmd.exe /C "echo %PROGRAMFILES%

[PATCH] Cygwin: fhandler_pipe::raw_read: fix handle leak

2021-11-23 Thread Ken Brown
Patch attached.From 6d34b62cb8e192071e193516c23419854c3b4127 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Tue, 23 Nov 2021 10:13:43 -0500 Subject: [PATCH] Cygwin: fhandler_pipe::raw_read: fix handle leak Slightly rearrange the code to avoid returning without closing the event handle. ---

Re: Program files environmental variables

2021-11-23 Thread Eliot Moss
On 11/23/2021 10:15 AM, john doe via Cygwin wrote: On 11/23/2021 2:10 PM, Eliot Moss wrote: On 11/23/2021 4:02 AM, john doe via Cygwin wrote:  > Cygwins,  >  > Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in  > Bash:  >  > $ echo $PROGRAMFILES; echo

Re: Program files environmental variables

2021-11-23 Thread john doe via Cygwin
On 11/23/2021 2:10 PM, Eliot Moss wrote: On 11/23/2021 4:02 AM, john doe via Cygwin wrote: > Cygwins, > > Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in > Bash: > > $ echo $PROGRAMFILES; echo "$PROGRAMFILES(x86)"; echo $PROGGRAMW6432 > C:\Program Files >

Re: Program files environmental variables

2021-11-23 Thread john doe via Cygwin
On 11/23/2021 10:37 AM, Daniel Abrahamsson wrote: John Doe wrote: Cygwins, Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in Bash: $ echo $PROGRAMFILES; echo "$PROGRAMFILES(x86)"; echo $PROGGRAMW6432 C:\Program Files C:\Program Files(x86) $ cmd.exe /C "echo

Re: Program files environmental variables

2021-11-23 Thread Eliot Moss
On 11/23/2021 4:02 AM, john doe via Cygwin wrote: > Cygwins, > > Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in > Bash: > > $ echo $PROGRAMFILES; echo "$PROGRAMFILES(x86)"; echo $PROGGRAMW6432 > C:\Program Files > C:\Program Files(x86) > > $ cmd.exe /C "echo

Re: Program files environmental variables

2021-11-23 Thread Lemures Lemniscati via Cygwin
On Tue, 23 Nov 2021 10:52:18 +0100, Csaba Raduly via Cygwin > On Tue, 23 Nov 2021 at 10:02, john doe via Cygwin wrote: > > > > Cygwins, > > > > Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in > > Bash: > > > > $ env | grep PROGRAMFILES > COMMONPROGRAMFILES=C:\Program

Re: Program files environmental variables

2021-11-23 Thread Csaba Raduly via Cygwin
On Tue, 23 Nov 2021 at 10:02, john doe via Cygwin wrote: > > Cygwins, > > Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in > Bash: > $ env | grep PROGRAMFILES COMMONPROGRAMFILES=C:\Program Files\Common Files PROGRAMFILES=C:\Program Files These are the environment

Re: raise(-1) has stopped returning an error recently

2021-11-23 Thread Corinna Vinschen via Cygwin
On Nov 23 19:27, Duncan Roe wrote: > On Mon, Nov 22, 2021 at 02:06:19PM +0100, cygwin wrote: > > On Nov 22 11:25, Corinna Vinschen via Cygwin wrote: > > > On Nov 22 16:20, Duncan Roe wrote: > > > > #include > > > > #include > > > > > > > > int > > > > main (void) > > > > { > > > > int retcod;

Re: possible snprintf() regression in 3.3.2

2021-11-23 Thread Corinna Vinschen via Cygwin
On Nov 23 17:34, Takashi Yano via Cygwin wrote: > On Tue, 23 Nov 2021 10:23:02 +1100 > Tony Cook wrote: > > On Mon, Nov 22, 2021 at 02:04:06PM +0100, Corinna Vinschen via Cygwin wrote: > > > On Nov 22 11:34, Corinna Vinschen via Cygwin wrote: > > > > On Nov 21 11:16, Tony Cook wrote: > > > > > A

Re: issues with cygwin programs in windows console

2021-11-23 Thread Takashi Yano via Cygwin
On Tue, 23 Nov 2021 08:53:49 + Миронов Леонид Владимирович via Cygwin wrote: > Something, probably a recent windows 10 update (currently at 10.0.17763.2300 > - way behind, but it is LTSC) broke cygwin programs using fullscreen > (ncurses?) console output e.g. less, mc, vi when run in

Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test)

2021-11-23 Thread Mark Geisert
Jon Turney wrote: On 21/11/2021 10:36, Mark Geisert wrote: Hi Denis, Denis Excoffier wrote: Hello, On 2021-11-03 10:59, Mark Geisert wrote: The following packages have been uploaded to the Cygwin distribution: * cygutils-1.4.16-8 * cygutils-extra-1.4.16-8 * cygutils-x11-1.4.16-8 The

Program files environmental variables

2021-11-23 Thread john doe via Cygwin
Cygwins, Is there a way to get the value of PROGRAMFILES(x86) and PROGRAMW6432 in Bash: $ echo $PROGRAMFILES; echo "$PROGRAMFILES(x86)"; echo $PROGGRAMW6432 C:\Program Files C:\Program Files(x86) $ cmd.exe /C "echo %PROGRAMFILES% %PROGRAMFILES(x86)% %PROGRAMW6432%" C:\Program Files C:\Program

issues with cygwin programs in windows console

2021-11-23 Thread Миронов Леонид Владимирович via Cygwin
Something, probably a recent windows 10 update (currently at 10.0.17763.2300 - way behind, but it is LTSC) broke cygwin programs using fullscreen (ncurses?) console output e.g. less, mc, vi when run in Windows console windows (cmd and such): they produce no output at all, just black screen with

Re: possible snprintf() regression in 3.3.2

2021-11-23 Thread Takashi Yano via Cygwin
On Tue, 23 Nov 2021 10:23:02 +1100 Tony Cook wrote: > On Mon, Nov 22, 2021 at 02:04:06PM +0100, Corinna Vinschen via Cygwin wrote: > > On Nov 22 11:34, Corinna Vinschen via Cygwin wrote: > > > On Nov 21 11:16, Tony Cook wrote: > > > > On Thu, Nov 18, 2021 at 09:08:40PM +, Sam Edge via Cygwin

Re: raise(-1) has stopped returning an error recently

2021-11-23 Thread Duncan Roe
On Mon, Nov 22, 2021 at 02:06:19PM +0100, cygwin wrote: > On Nov 22 11:25, Corinna Vinschen via Cygwin wrote: > > On Nov 22 16:20, Duncan Roe wrote: > > > Hi, > > > > > > I stumbled across this when running 'make check' in the grep source > > > directory. > > > > > > test-raise failed when it