Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 38c6aa11c0c84f7b7f24a780de1a66edbac8d1b7
Ticket: 770849ffffffffffffffffffffffffffffffffff
incr of neumeric values for '08' and '09' fails
User & Date: msofer on 2003-07-14 18:04:28
Changes

  1. closedate changed to: "2003-07-14T11:04:28"
  2. closer changed to: "msofer"
  3. icomment:
    Logged In: YES 
    user_id=148712
    
    This is not really a bug ... although it bugs plenty of
    people. See for instance 
    http://sourceforge.net/tracker/?group_id=10894&atid=360894&func=detail&aid=623061
    
    Tcl will interpret a string of digits starting with 0 as an
    integer in base 8 (octal). Now 07 is a valid octal number
    (value seven), but 08 is not - the number eight is written
    010 as an octal. Hence the "looks like an invalid octal"
    message. In this sense, an invalid octal is a string of
    digits starting with 0 and containing at least an invalid
    octal digit (8 or 9).
    
    Workaround: remove a possible leading zero with 
        set r [string trimleft $r 0]
    and use [format] at the endofyour calculations if you need
    topad with zeros.
    
    
  4. login: "msofer"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "msofer"