"format" command produces errorneous result
Closed / Invalid218941ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:17
OriginalBugID: 2859 Bug
Version: 8.2
SubmitDate: '1999-09-21'
LastModified: '1999-09-21'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
Machine: X86
FixedDate: '1999-09-21'
FixedInVersion: 8.2.1
ClosedDate: '2000-10-25'
Name:
Hai S. Vu
ReproducibleScript:
The following command
% format "%07s" "123"
returns string " 123" (leading spaces)
instead of string "0000123" (leading zeros)
I didn't have this problem in TCL 8.0
This is actually user error, as our docs and the ANSI spec
both leave this behavior as undefined. With 8.2.1, the
user will see 0s, but this is still officially 'undefined'.
-- 09/21/1999 hobbs
welch Closed ticket [218941ffff].
[History diff]2000-10-26 08:32:14
dgp Ticket [218941ffff]: 5 changes
[History diff]2001-04-19 03:30:49
Log in (anonymous is fine) to add a comment.