.
D 2004-07-15T05:59:38
J assignee dkf
J cmimetype text/plain
J comment The\sformat\scommand\serrors\sout\son\s%d\sof\sa\swide\sint,\sbut\nthan\sconverts\sthe\swide\sint\sto\sint\sso\sthat\ssubsequent\nformat\sworks\swithout\serror.\n\nPlace\sthe\sfollowing\sin\sa\sfile\s"format_bug.tcl":\n\nset\sx\s[file\ssize\sformat_bug.tcl]\n\nputs\sstdout\s"First\sformat:"\s\nif\s{[catch\s{format\s"%d\sbytes"\s$x}\sres]}\s{\n\s\s\s\sputs\sstdout\s"Error:\s$res\\nTrace\sback:\s$errorInfo"\s\n}\selse\s{\n\s\s\s\sputs\sstdout\s$res\n}\s\n\nputs\sstdout\s"Second\sformat:"\s\nif\s{[catch\s{format\s"%d\sbytes"\s$x}\sres]}\s{\n\s\s\s\sputs\sstdout\s"Error:\s$res\\nTrace\sback:\s$errorInfo"\n}\selse\s{\n\s\s\s\sputs\sstdout\s$res\n}\s\n\nRunning\sthe\sabove\scode\sproduces:\n\nFirst\sformat:\s\nError:\s\nTrace\sback:\n\s\s\s\swhile\sexecuting\s\n"format\s"%d\sbytes"\s$x"\s\nSecond\sformat:\s\n337\sbytes\n
J foundin obsolete:\s8.4.6
J priority 5\sMedium
J resolution None
J status Open
J submitter bgriffin
J subsystem 16.\sCommands\sA-H
J title format\sproblem\swith\swide\sints
J type Bug
K 991371ffffffffffffffffffffffffffffffffff
U bgriffin
Z 8e52e5d6b85bd3fdb59edfc5b1a7840a