Skip to content
Tcl Source Code History Of Ticket 634856ffffffffff
Login

History Of Ticket 634856ffffffffff

Artifacts Associated With Ticket 634856ffffffffff

  1. Ticket change [9077569559] (rid 120456) by bwallner on 2002-11-07 07:36:46:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I'm checking input values and see this strange
      behaviour of the 'string is integer' command.
      
      puts "tcl_version: $tcl_version"
      set numbers {1 +1 ++1 +-1 -+1 -1 --1 "-  +1"
                         "+  \n+1" "-  \t-1"}
      foreach num $numbers {
        puts "$num is integer: [string is integer $num]"
      }
      
      See the results of '[string is real]':
      
      set numbers {1.0 +1.0 ++1.0 +-1.0 -+1.0 -1.0 --1.0 "- 
      +1.0" 
      "+  \n+1.0" "-  \t-1.0"}
      foreach num $numbers {
         puts "$num is double: [string is double $num]"
      }
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "bwallner"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "results of 'string is integer' are wrong"
    11. type initialized to: "Bug"
  2. Ticket change [294ebe126f] (rid 88848) by kennykb on 2002-11-07 23:48:01:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=99768
      
      The problem is actually in Tcl_GetIntFromObj, as the following shows.
      Note that literal sharing confuses the issue, since once the object
      acquires the integer internal representation that it shouldn't have, it
      keeps that internal rep.
      
      (bin) 49 % info patchlevel
      8.4.0
      (bin) 50 % set x "+ -1"
      + -1
      (bin) 51 % expr { $x + 0 }
      can't use non-numeric string as operand of "+"
      (bin) 52 % set y [format %d $x]
      -1
      (bin) 53 % set x
      + -1
      (bin) 54 % expr { $x + 0 }
      -1
      
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. subsystem changed to: "10. Objects"
    7. username: "kennykb"
  3. Add attachment "string634856.patch" [779e71f9e6] (rid 89806) by hobbs on 2002-11-15 02:42:17.

  4. Ticket change [cf112bac6e] (rid 112896) by hobbs on 2002-11-15 02:42:17:

    1. icomment:
      
      
      File Added - 35424: string634856.patch
      
      Logged In: YES 
      user_id=72656
      
      Attached is a patch which corrects this behavior in the head.  
      I completely removed the funky functionality with #ifdef 
      because I couldn't find a system to test a "bad strtoul" 
      implementation.  According to the C standard and reading of 
      libc implementations, we shouldn't ever have this problem, but 
      I left in at least the #ifdef in case someone finds such a 
      system.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  5. Ticket change [3d982f4404] (rid 121112) by hobbs on 2002-11-19 09:29:14:

    1. closedate changed to: "2002-11-19T02:29:14"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      corrected for 8.4.2.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"