Artifacts Associated With Ticket 219046ffffffffff
Ticket change [dbb4ae0792] (rid 108006) by nobody on 2000-10-26 01:09:52:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4118 Bug Version: 8.2.3 SubmitDate: '2000-02-03' LastModified: '2000-03-31' Severity: CRIT Status: Released Submitter: techsupp ChangedBy: ericm OS: Linux-Red Hat OSVersion: RedHat Linux 5.2 (Linux 2.2.11) Machine: Digital HiNote VP (portable) FixedDate: '2000-03-31' FixedInVersion: 8.3.1 ClosedDate: '2000-10-25' Name: Eivind Tagseth ObservedBehavior: As far as I can see there is a small bug in tcl 8.2.3 in Tcl_GetDouble(). The function checks errno after calling strtod, but fails to check the return value of strtod. On my system strtod returns 1 as it should, but errno is set to 84, causing Tcl_GetDouble to fail. DesiredBehavior: I expect Tcl_GetDouble to fail only if strtod's return value indicates that something went wrong. Patch: --- tcl8.2.3/generic/tclGet.c Fri Apr 16 02:46:46 1999 +++ tcl8.2.3/generic/tclGet.new.c Thu Feb 3 10:10:09 2000 @@ -220,7 +220,7 @@ } return TCL_ERROR; } - if (errno != 0) { + if (errno != 0 && (d == HUGE_VAL || d == -HUGE_VAL || d == 0)) { if (interp != (Tcl_Interp *) NULL) { TclExprFloatError(interp, d); } PatchFiles: generic/tclGet.c Thanks for the patch. I applied it to the sources in CVS, and the fix will go out with 8.3.1. - eric -- 03/31/2000 ericm - foundin initialized to: "final: 8.2.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
Tcl_GetDouble fails with unknown floating point error
- type initialized to: "Bug"
Ticket change [9c41954eeb] (rid 96118) by welch on 2000-10-26 08:34:05:
- closedate changed to: "2000-10-26T01:34:05"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [20ce5923da] (rid 130478) by dgp on 2001-04-23 04:10:53:
- closedate changed to: "2001-04-22T21:10:53"
- closer changed to: "dgp"
- subsystem changed to: "11. Conversions from String"