[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #1322: Locale can influence how CHICKEN reads num
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #1322: Locale can influence how CHICKEN reads numbers |
Date: |
Sat, 27 Aug 2016 18:28:10 -0000 |
#1322: Locale can influence how CHICKEN reads numbers
---------------------------------------+----------------------------
Reporter: sjamaan | Owner:
Type: defect | Status: new
Priority: major | Milestone: 4.12.0
Component: core libraries | Version: 4.11.0
Resolution: | Keywords: number parsing
Estimated difficulty: hard |
---------------------------------------+----------------------------
Comment (by sjamaan):
Note that this particular situation will have been fixed in CHICKEN 5
already; we simply encode flonums as a packed byte sequence, and "large"
fixnums (> 30 bits) as bignums, which will be simplified to fixnums after
reading. The bignum reader doesn't use `strtod`. Note that there's still
some compatibility code in runtime.c that still triggers the old code
path. This is to make it possible to compile CHICKEN 5 through a boot-
chicken with CHICKEN 4.
Regardless of this being fixed in CHICKEN 5, there could still be issues
lurking due to locale mismatch, we should really try to figure out a way
to catch these stupid bugs :(
--
Ticket URL: <https://bugs.call-cc.org/ticket/1322#comment:3>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.