From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4844 invoked by alias); 17 Mar 2008 17:29:21 -0000 Received: (qmail 4724 invoked by uid 48); 17 Mar 2008 17:28:35 -0000 Date: Mon, 17 Mar 2008 17:29:00 -0000 Message-ID: <20080317172835.4723.qmail@sourceware.org> From: "rsa at us dot ibm dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20080317163230.5950.boringuy@gmail.com> References: <20080317163230.5950.boringuy@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5950] strtold_l() segfaults on various distribution of linux X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00098.txt.bz2 ------- Additional Comments From rsa at us dot ibm dot com 2008-03-17 17:28 ------- #include #include int main() { double d; locale_t loc_new = newlocale (LC_ALL_MASK, "C", 0); d = strtod_l("1234.23423", NULL, loc_new); return 0; } Compile with: gcc -Wall test.c -o test -D_GNU_SOURCE=1 I asked Andy Fong to open this bugzilla on the #glibc irc channel because the documentation on how to use the _l form of strtod is lacking (practically non-existant minus the one blurb in 'info libc'). >>From `info libc`: The GNU C library also provides `_l' versions of these functions, which take an additional argument, the locale to use in conversion. *Note Parsing of Integers::. I expected that newlocale may appear `info libc` but that's not the case either. I'm going to ask libc-alpha if there's a suggestion for better documentation. -- http://sourceware.org/bugzilla/show_bug.cgi?id=5950 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.