Package: manpages-dev
Version: 3.17-1
Severity: normal

The strtod(3) man page is incorrect concerning NAN(...). It says:

  A NAN is "NAN" (disregarding case) optionally followed by '(', a
  sequence of characters, followed by ')'.

but doesn't require anything concerning the sequence of characters
(one may think that any sequence is allowed up to the first closing
parenthesis). However the glibc 2.9-6 package seems to strictly
follow the ISO C99 standard, which says:

[Section 7.20.1.3]
  NAN or NAN(n-char-sequence_opt), ignoring case in the NAN part,
  where: 
    n-char-sequence: 
      digit
      nondigit
      n-char-sequence digit
      n-char-sequence nondigit

[Section 6.4.2.1]
               nondigit: one of
                       _  a  b  c  d  e  f  g  h  i  j  k  l  m
                          n  o  p  q  r  s  t  u  v  w  x  y  z
                          A  B  C  D  E  F  G  H  I  J  K  L  M
                          N  O  P  Q  R  S  T  U  V  W  X  Y  Z
               digit: one of
                       0  1  2  3  4  5  6  7  8  9

Also the man page should explicitly say that the sequence can be
empty. So, I propose:

  A NAN is "NAN" (disregarding case) optionally followed by '(',
  a possibly empty sequence of characters, followed by ')'.  Each
  character of the sequence must be either the underscore '_' or
  an alphanumeric character in the "C" locale.

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages manpages-dev depends on:
ii  manpages                      3.17-1     Manual pages about using a GNU/Lin

manpages-dev recommends no packages.

Versions of packages manpages-dev suggests:
ii  gman [man-browser]            0.9.3-5    small man(1) front-end for X
ii  man-db [man-browser]          2.5.5-1    on-line manual pager

-- no debconf information



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

Reply via email to