Submitted by: Hai S. Vu
OperatingSystem: Windows NT
Synopsis: "format" command produces errorneous result
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
format "%07d" "123"
Using the "0-padding" with strings is undefined
in ANSI C, and it's behavior in Tcl used to be
subject to that restriction. It's current behavior
is undocumented and undefined. Jeff Hobbs is in the
process of changing either the implementation
or the docs.
-- Scott