All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivana Hutarova Varekova <varekova-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: strtol.3 man-page bug
Date: Fri, 21 Jan 2011 13:10:23 +0100	[thread overview]
Message-ID: <4D3977AF.9060601@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

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



[-- Attachment #2: man-pages-3.32-strtol.patch --]
[-- Type: text/x-patch, Size: 503 bytes --]

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

                 reply	other threads:[~2011-01-21 12:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D3977AF.9060601@redhat.com \
    --to=varekova-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.