[racket-dev] .1 evaluates to 0.0 [was Re: plot doesn't plot (inexact->exact: no exact representation for +nan.0)]

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Dec 28 07:18:01 EST 2011

Thanks for all the new info! I don't think that it's a bytcode problem.
I start to wonder if it's in number parsing...

On line 1102 of "src/racket/src/numstr.c", there's a call to STRTOD().
Does it change anything if you wrap that call with calls to
scheme_push_c_numeric_locale() and scheme_pop_c_numeric_locale(loc)?:

      GC_CAN_IGNORE char *loc;
      loc = scheme_push_c_numeric_locale();
      d = STRTOD(ffl_buf, &ptr);

Posted on the dev mailing list.