This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5537] strtod under tr_TR locale


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]