Bug#756599: printf(3) manpage: stray asterisk in "NAN*"

2016-02-17 Thread Stéphane Aulery

Le 17/02/2016 13:14, Michael Kerrisk (man-pages) a écrit :


On 17 February 2016 at 01:21, Stéphane Aulery  wrote:


About Debian Bug #756599 [1], I found this explanation [2][3] confirming
that * is not a selector :


I've removed the stray "*" (commit 4a66305922b197)

Thanks for the report, Jakub. And thanks for reminding me of this bug, Stéphane.


Nothing, it's always a pleasure :)

Regards,

--
Stéphane Aulery



Bug#756599: printf(3) manpage: stray asterisk in "NAN*"

2016-02-17 Thread Michael Kerrisk (man-pages)
tags 756599 fixed-upsteam
thanks

On 17 February 2016 at 01:21, Stéphane Aulery  wrote:
> Hello Michael,
>
> About Debian Bug #756599 [1], I found this explanation [2][3] confirming
> that * is not a selector :

I've removed the stray "*" (commit 4a66305922b197)

Thanks for the report, Jakub. And thanks for reminding me of this bug, Stéphane.

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



Bug#756599: printf(3) manpage: stray asterisk in "NAN*"

2016-02-16 Thread Stéphane Aulery

Hello Michael,

About Debian Bug #756599 [1], I found this explanation [2][3] confirming 
that * is not a selector :



strtod recognizes four special input strings. The strings "inf" and 
"infinity" are converted to , or to the largest representable 
value if the floating-point format doesn’t support infinities. You can 
prepend a "+" or "-" to specify the sign. Case is ignored when scanning 
these strings.


The strings "nan" and "nan(chars…)" are converted to NaN. Again, case is 
ignored. If chars… are provided, they are used in some unspecified 
fashion to select a particular representation of NaN (there can be several).


Since zero is a valid result as well as the value returned on error, you 
should check for errors in the same way as for strtol, by examining 
errno and tailptr.



Regards,

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756599
[2] 
https://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html
[3] 
http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Infinity-and-NaN.html


--
Stéphane Aulery



Bug#756599: printf(3) manpage: stray asterisk in NAN*

2014-07-31 Thread Jakub Wilk

Package: manpages-dev
Version: 3.65-1
Severity: minor

The printf(3) manpage reads:

The C99 standard specifies [-]inf or [-]infinity for infinity, and a 
string starting with nan for NaN, in the case of f conversion, and 
[-]INF or [-]INFINITY or NAN* in the  case  of  F conversion.)



Please remove the stray asterisk after NAN.

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#756599: printf(3) manpage: stray asterisk in NAN*

2014-07-31 Thread Michael Kerrisk (man-pages)
Jakub,

I do not know the details here, but are you sure this is wrong? The
preceding part of the sentence says [and  a string starting with nan
for NaN, in the case of f conversion], and I take the * to mean a
wildcard pattern match, analogous with [a string starting with nan
for NaN]. This is just my guess though.

Cheers,

Michael

On Thu, Jul 31, 2014 at 10:58 AM, Jakub Wilk jw...@debian.org wrote:
 Package: manpages-dev
 Version: 3.65-1
 Severity: minor

 The printf(3) manpage reads:

 The C99 standard specifies [-]inf or [-]infinity for infinity, and a
 string starting with nan for NaN, in the case of f conversion, and
 [-]INF or [-]INFINITY or NAN* in the  case  of  F conversion.)


 Please remove the stray asterisk after NAN.

 --
 Jakub Wilk




-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#756599: printf(3) manpage: stray asterisk in NAN*

2014-07-31 Thread Jakub Wilk

Hi Micheal,

Thanks for the quick reply!

* Michael Kerrisk mtk.manpa...@gmail.com, 2014-07-31, 12:16:
I do not know the details here, but are you sure this is wrong? The 
preceding part of the sentence says [and  a string starting with nan 
for NaN, in the case of f conversion], and I take the * to mean a 
wildcard pattern match, analogous with [a string starting with nan 
for NaN]. This is just my guess though.


Oh, that makes sense. Somehow it didn't occur to me that the * 
character is not meant to be literal here.


Could you make this character italic, to make it clear it is not 
literal?


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#756599: printf(3) manpage: stray asterisk in NAN*

2014-07-31 Thread Michael Kerrisk (man-pages)
 Could you make this character italic, to make it clear it is not literal?


Without being sure of the details, I am reluctant to make any change.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org