This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5537] strtod under tr_TR locale
- From: "ismail at pardus dot org dot tr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Jan 2008 21:25:02 -0000
- Subject: [Bug libc/5537] strtod under tr_TR locale
- References: <20080102215658.5537.madcoder@debian.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From ismail at pardus dot org dot tr 2008-01-03 21:25 -------
FWIW following testcase works for me with glibc 2.7 & tr_TR.UTF-8
#include <stdio.h>
#include <ctype.h>
#include <locale.h>
#include <stdlib.h>
#include <errno.h>
int main(int argc, char **argv)
{
int i;
double ret;
char *e = NULL;
setlocale(LC_ALL, "");
errno = 0;
ret = strtod(argv[1], &e);
if (errno != 0) { perror("strtol"); }
printf("%.18f [%s]\n", ret, e);
return 0;
}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5537
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.