Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
20:49 • Ticket [218061ffff] Problems with the usage of 08 and 09 status still Closed... artifact: b86a3d88ae user: dgp
2000-10-26
08:13 • Closed ticket [218061ffff]. artifact: 5c4624f69d user: welch
00:52 • New ticket [218061ffff]. artifact: c0360fa64d user: nobody

Problems with the usage of 08 and 09

Closed / Invalid218061ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:42
OriginalBugID: 1514 Bug
Version: 8.0p2
SubmitDate: '1999-03-16'
LastModified: '1999-08-07'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: hobbs
OS: Windows 95
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-08-07'


Name:
Jayanth Vedagiri

Extensions:
tcl8.0

ReproducibleScript:
    expr 1 + 08
    expr 1 + 09
    expr 08 + 1
    expr 09 + 1
    format "%d" 08
    format "%d" 09
    expr 1*int(08)
    expr 1*int(09)
    



ObservedBehavior:
    Always gives an expression error or a syntax error, but works well in
    the case of other numbers
    



DesiredBehavior:
    should be able to perform calculations like with ordinary numbers 
    




These characters are being interpreted as octal numbers, for which
08 and 09 are not valid, as doc'ed in the expr man page. 
-- 08/07/1999 hobbs
welch Closed ticket [218061ffff]. [History diff]2000-10-26 08:13:45
dgp Ticket [218061ffff]: 4 changes [History diff]2001-04-16 20:49:07
Log in (anonymous is fine) to add a comment.