Skip to content
Tcl Source Code History Of Ticket 219046ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 219046ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 219046ffffffffffffffffffffffffffffffffff

  1. Ticket change [dbb4ae0792] (rid 108006) by nobody on 2000-10-26 01:09:52:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
      
    4. foundin initialized to: "final: 8.2.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Tcl_GetDouble fails with unknown floating point error
      
    11. type initialized to: "Bug"
  2. Ticket change [9c41954eeb] (rid 96118) by welch on 2000-10-26 08:34:05:

    1. closedate changed to: "2000-10-26T01:34:05"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [20ce5923da] (rid 130478) by dgp on 2001-04-23 04:10:53:

    1. closedate changed to: "2001-04-22T21:10:53"
    2. closer changed to: "dgp"
    3. subsystem changed to: "11. Conversions from String"