Re: strtod ("nan") returns negative NaN

2018-08-13 Thread Masamichi Hosoda
>>> On Mon, 13 Aug 2018 at 19:46, Duncan Roe wrote: On Mon, Aug 13, 2018 at 12:52:48PM -0400, Stephen John Smoogen wrote: > On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda > wrote: [...] > On Fedora 27 with 7.3.1 it gives > ``` > stod ("nan") = nan >

Re: problem with paste-from-clipboard

2018-08-13 Thread Steven Penny
On Mon, 13 Aug 2018 12:02:53, Bosmon wrote: Your posting was in the thread "[ANNOUNCEMENT] Updated: libreadline7-7.0.1-1, libreadline-devel-7.0.1-1, bash-4.4.5-1" and is linked here: https://www.mail-archive.com/cygwin@cygwin.com/msg151042.html the proper link is here:

Re: strtod ("nan") returns negative NaN

2018-08-13 Thread Steven Penny
On Tue, 14 Aug 2018 11:31:35, Masamichi Hosoda wrote: If I understand correctly, `std::stod ()` uses cygwin1.dll's `strtod ()` for the conversion. `std::stod ()` is defined in /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/basic_string.h L6388-. It calls `__gnu_cxx::__stoa ()` with

strtod ("nan") returns negative NaN (was `std::stod ("nan")` returns negative NaN)

2018-08-13 Thread Masamichi Hosoda
>> On Mon, 13 Aug 2018 at 19:46, Duncan Roe wrote: >>> >>> On Mon, Aug 13, 2018 at 12:52:48PM -0400, Stephen John Smoogen wrote: >>> > On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda >>> > wrote: >>> [...] >>> > On Fedora 27 with 7.3.1 it gives >>> > ``` >>> > stod ("nan") = nan >>> > stod

Re: `std::stod ("nan")` returns negative NaN

2018-08-13 Thread Masamichi Hosoda
> On Mon, 13 Aug 2018 at 19:46, Duncan Roe wrote: >> >> On Mon, Aug 13, 2018 at 12:52:48PM -0400, Stephen John Smoogen wrote: >> > On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda >> > wrote: >> [...] >> > On Fedora 27 with 7.3.1 it gives >> > ``` >> > stod ("nan") = nan >> > stod ("-nan") = nan

Re: `std::stod ("nan")` returns negative NaN

2018-08-13 Thread Stephen John Smoogen
On Mon, 13 Aug 2018 at 19:46, Duncan Roe wrote: > > On Mon, Aug 13, 2018 at 12:52:48PM -0400, Stephen John Smoogen wrote: > > On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda wrote: > [...] > > On Fedora 27 with 7.3.1 it gives > > ``` > > stod ("nan") = nan > > stod ("-nan") = nan > > quiet_NaN ()

Re: `std::stod ("nan")` returns negative NaN

2018-08-13 Thread Duncan Roe
On Mon, Aug 13, 2018 at 12:52:48PM -0400, Stephen John Smoogen wrote: > On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda wrote: [...] > On Fedora 27 with 7.3.1 it gives > ``` > stod ("nan") = nan > stod ("-nan") = nan > quiet_NaN () = nan > ``` [...] Same with Slackware 14.2 / gcc (GCC) 5.3.0 --

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Houder
On 2018-08-14 00:16, Eric Blake wrote: On 08/13/2018 04:29 PM, Houder wrote: The modication would require changing: winsup/cygwin/fenv.cc (_feinitialise() ) winsup/cygwin/include/fenv.h (FE_ALL_EXCEPT) GRRR! The file encoding of fenv.h is "cp1252" because of 2 characters in this line:   

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Eric Blake
On 08/13/2018 04:29 PM, Houder wrote: The modication would require changing: winsup/cygwin/fenv.cc (_feinitialise() ) winsup/cygwin/include/fenv.h (FE_ALL_EXCEPT) GRRR! The file encoding of fenv.h is "cp1252" because of 2 characters in this line: Intel® 64 and IA-32 Architectures

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Houder
On 2018-08-13 23:29, Houder wrote: On 2018-08-10 14:43, Houder wrote: On Fri, 10 Aug 2018 13:42:54, Corinna Vinschen wrote: [snip] > Note: the following line must be changed in STC-FENV.c (the STC that was > attached to the bug report -- the last one above). > > from: > const int xxx =3D

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Houder
On 2018-08-10 14:43, Houder wrote: On Fri, 10 Aug 2018 13:42:54, Corinna Vinschen wrote: [snip] > Note: the following line must be changed in STC-FENV.c (the STC that was > attached to the bug report -- the last one above). > > from: > const int xxx =3D 0x3d; // FE_ALL_EXCEPT on Linux, i.e.

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Achim Gratz
Houder writes: > from: > const int xxx = 0x3d; // FE_ALL_EXCEPT on Linux, i.e. the denormal-operand > // exception is excluded on Linux > > to: > const int xxx = 0x3f; // Cygwin allows the denormal-operand exception; > // Linux (Andreas Jaeger) does not.

Re: problem with paste-from-clipboard

2018-08-13 Thread Bosmon
Your posting was in the thread "[ANNOUNCEMENT] Updated: libreadline7-7.0.1-1, libreadline-devel-7.0.1-1, bash-4.4.5-1" and is linked here: https://www.mail-archive.com/cygwin@cygwin.com/msg151042.html The problem you reported, of broken interactive non-ASCII input, is likely unrelated but is

Re: `std::stod ("nan")` returns negative NaN

2018-08-13 Thread Stephen John Smoogen
On Mon, 13 Aug 2018 at 11:16, Masamichi Hosoda wrote: > > Hi > > I've found a curious behavior about `std::stod ("nan")` on Cygwin. > Only on Cygwin, `std::stod ("nan")` returns negative NaN. > On Linux etc., `std::stod ("nan")` returns positive NaN. > > Here is a reproduction code. > > ``` > //

`std::stod ("nan")` returns negative NaN

2018-08-13 Thread Masamichi Hosoda
Hi I've found a curious behavior about `std::stod ("nan")` on Cygwin. Only on Cygwin, `std::stod ("nan")` returns negative NaN. On Linux etc., `std::stod ("nan")` returns positive NaN. Here is a reproduction code. ``` // g++ -std=c++11 foobar.cc #include #include #include int main () {

Re: Documentation for cygwin-console-helper.exe

2018-08-13 Thread Corinna Vinschen
On Aug 13 08:57, cyg Simple wrote: > On 8/13/2018 3:53 AM, Corinna Vinschen wrote: > > On Aug 12 19:53, cyg Simple wrote: > >> The documentation for cygwin-console-helper.exe is missing, not even a > >> --help function. > > > > cygwin-console-helper.exe is not for the user to use, so why add > >

Re: cygserver - /usr/sbin vs /usr/bin

2018-08-13 Thread Corinna Vinschen
On Aug 13 08:50, cyg Simple wrote: > On 8/13/2018 3:49 AM, Corinna Vinschen wrote: > > On Aug 10 11:28, cyg Simple wrote: > >> Looking at the files delivered by the cygwin upgrade I see > >> /usr/sbin/cygserver.exe and /usr/bin/cygserver-config. Shouldn't > >> cygserver-config reside in /usr/sbin

Re: Documentation for cygwin-console-helper.exe

2018-08-13 Thread cyg Simple
On 8/13/2018 3:53 AM, Corinna Vinschen wrote: > On Aug 12 19:53, cyg Simple wrote: >> The documentation for cygwin-console-helper.exe is missing, not even a >> --help function. > > cygwin-console-helper.exe is not for the user to use, so why add > user docs? The documentation is in the source

Re: cygserver - /usr/sbin vs /usr/bin

2018-08-13 Thread cyg Simple
On 8/13/2018 3:49 AM, Corinna Vinschen wrote: > On Aug 10 11:28, cyg Simple wrote: >> Looking at the files delivered by the cygwin upgrade I see >> /usr/sbin/cygserver.exe and /usr/bin/cygserver-config. Shouldn't >> cygserver-config reside in /usr/sbin with cygserver.exe? >> You didn't answer

Re: Documentation for cygwin-console-helper.exe

2018-08-13 Thread Corinna Vinschen
On Aug 13 12:11, Andy Moreton wrote: > On Mon 13 Aug 2018, Corinna Vinschen wrote: > > > On Aug 12 19:53, cyg Simple wrote: > >> The documentation for cygwin-console-helper.exe is missing, not even a > >> --help function. > > > > cygwin-console-helper.exe is not for the user to use, so why add >

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Corinna Vinschen
On Aug 13 10:35, Thomas Wolff wrote: > Am 09.08.2018 um 22:26 schrieb Corinna Vinschen: > > Hi folks, > > > > > > I uploaded a new Cygwin test release 2.11.0-0.1 > > > > I'm planning for a release end of August. Please test. > > > >

Re: Documentation for cygwin-console-helper.exe

2018-08-13 Thread Andy Moreton
On Mon 13 Aug 2018, Corinna Vinschen wrote: > On Aug 12 19:53, cyg Simple wrote: >> The documentation for cygwin-console-helper.exe is missing, not even a >> --help function. > > cygwin-console-helper.exe is not for the user to use, so why add > user docs? It is helpful to users to have a --help

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Thomas Wolff
Am 09.08.2018 um 22:26 schrieb Corinna Vinschen: Hi folks, I uploaded a new Cygwin test release 2.11.0-0.1 I'm planning for a release end of August. Please test. === What's new: --- ... What changed:

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Corinna Vinschen
On Aug 13 10:03, Houder wrote: > On 2018-08-10 14:43, Houder wrote: > > On Fri, 10 Aug 2018 13:42:54, Corinna Vinschen wrote: > > [snip] > > > > > > Note: the following line must be changed in STC-FENV.c (the STC that was > > > > attached to the bug report -- the last one above). > > > > > > > >

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Houder
On 2018-08-10 14:43, Houder wrote: On Fri, 10 Aug 2018 13:42:54, Corinna Vinschen wrote: [snip] > Note: the following line must be changed in STC-FENV.c (the STC that was > attached to the bug report -- the last one above). > > from: > const int xxx =3D 0x3d; // FE_ALL_EXCEPT on Linux, i.e.

Re: Documentation for cygwin-console-helper.exe

2018-08-13 Thread Corinna Vinschen
On Aug 12 19:53, cyg Simple wrote: > The documentation for cygwin-console-helper.exe is missing, not even a > --help function. cygwin-console-helper.exe is not for the user to use, so why add user docs? The documentation is in the source for the interested dev:

Re: cygserver - /usr/sbin vs /usr/bin

2018-08-13 Thread Corinna Vinschen
On Aug 10 11:28, cyg Simple wrote: > Looking at the files delivered by the cygwin upgrade I see > /usr/sbin/cygserver.exe and /usr/bin/cygserver-config. Shouldn't > cygserver-config reside in /usr/sbin with cygserver.exe? > > Also in that vain shouldn't cyglsa belong in /usr/sbin? Nope.

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Corinna Vinschen
On Aug 10 18:00, Marco Atzeri wrote: > Am 09.08.2018 um 22:26 schrieb Corinna Vinschen: > > Hi folks, > > > > > > I uploaded a new Cygwin test release 2.11.0-0.1 > > [...] > > testing libuv, I see a large number of new failures STC? Corinna -- Corinna Vinschen Please, send

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.11.0-0.1

2018-08-13 Thread Corinna Vinschen
On Aug 10 14:43, Houder wrote: > On Fri, 10 Aug 2018 13:42:54, Corinna Vinschen wrote: > [snip] > > > > Note: the following line must be changed in STC-FENV.c (the STC that was > > > attached to the bug report -- the last one above). > > > > > > from: > > > const int xxx =3D 0x3d; //

Re: Documentation for cygwin-console-helper.exe

2018-08-13 Thread Thomas Wolff
Am 13.08.2018 um 01:53 schrieb cyg Simple: The documentation for cygwin-console-helper.exe is missing, not even a --help function. No comments in the source code. Only a code.google page for mintty[1] was beneficial to allow me to understand it and then it was a late entry comment that sort of