strtol.3 man-page bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
there is wrong statement regarding the characters which are parsed in the input string:

"In locales other than the "C" locale, other strings may also be accepted. (For example, the thousands separator of the current locale may be supported.)"

It is not possible to use other strings - see stdlib/strtol_l.c in glibc. The patch is attached.
Ivana Hutarova Varekova


diff -up man-pages-3.32/man3/strtol.3.pom man-pages-3.32/man3/strtol.3
--- man-pages-3.32/man3/strtol.3.pom	2010-12-03 08:02:02.000000000 +0100
+++ man-pages-3.32/man3/strtol.3	2011-01-21 12:55:58.000000000 +0100
@@ -158,9 +158,6 @@ and then determine if an error occurred 
 .I errno
 has a nonzero value after the call.
 
-In locales other than the "C" locale, other strings may also be accepted.
-(For example, the thousands separator of the current locale may be
-supported.)
 .LP
 BSD also has
 .sp

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux