bug#18592: FFI should have portable access to ‘errno’

2015-01-25 Thread guile@discard.email
I'd like to point out that when calling a function that might set errno in C, it's usually good practice to set errno to zero immediately before the call, so as to be sure that any subsequent non-zero errno value was actually a consequence of the function call:   errno = 0; /* clear errno before th

bug#18932: #18932 string->number errors on e.g. "1e400xyz"

2015-01-21 Thread guile@discard.email
Note that guile 2.0.11 also gives strange results for large negative exponents: scheme@(guile-user)> (string->number "1e-400")ERROR: In procedure string->number:ERROR: In procedure string->number: Value out of range: -400   For comparison, in Scheme 48 1.9 (string->number "1e-400") => 0.0 (string-