Overview
| Artifact ID: | 0b3e0ff12d51c3163fd07b31ac78aae1fecbd32f |
|---|---|
| Ticket: | 548686ffffffffffffffffffffffffffffffffff
expr || fails with hex data |
| User & Date: | msofer on 2002-04-26 06:58:13 |
Changes
- icomment:
Logged In: YES user_id=148712 I think I found the source of the bug: INST_LOR calls Tcl_GetBooleanFromObj(), which then calls strtod() on the string. Apparently, the Solaris strtod() does not handle hex numbers ... Quoting from http://www.redhat.com/devnet/whitepapers/solaris_port/x1609.html "Note: The GNU C library includes all ISO C99 functionality. This introduces two kinds of problems: a) traditionally used interfaces might be reused (example: the nan function, there was a nan symbol on some implementation denoting the NaN value); b) silent changes in the implementation. The latter is especially bad but unavoidable. One often hit problem is the change in strtod et.al to allow the hexadecimal floating-point number notation which suddenly lets strtod accept expressions it would not have before." I think I can find a workaround for this - the call to strtod might be premature in Tcl_GetBooleanFromObj(), or the the call to Tcl_GetBooleanFromObj() might be premature in INST_LOR; however, it will not happen tonight. Also, it might be a good opportunity to look for other hex/strtod bugs lurking in there.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"