Artifacts Associated With Ticket 2141271fffffffffffffffffffffffffffffffff
Ticket change [7e0853fd08] (rid 97337) by yurivict on 2008-10-01 22:43:45:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Please compile and run an attached .c file. When run it prints an empty errorInfo obtained after a particular wrong command. errorInfo should *always* be set if Tcl_ParseCommand returns and error.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "yurivict"
- subsystem initialized to: "None"
- title initialized to:
Tcl_ParseCommand doesn't set errorInfo for a wrong command
- type initialized to: "Bug"
Ticket change [e1bf9035c2] (rid 87508) by yurivict on 2008-10-02 05:43:45:
- icomment:
File Added - 295702: parse-error.c
- login: "yurivict"
- mimetype: "text/plain"
- username: "yurivict"
- icomment:
Add attachment "parse-error.c" [ed4393348a] (rid 103847) by yurivict on 2008-10-02 05:43:45.
Ticket change [4c39008ad9] (rid 126844) by dgp on 2008-10-02 22:57:19:
- assignee changed to: "dgp"
- icomment:
Please report the version of Tcl in which you see the problem.
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- username: "dgp"
Ticket change [ec300a0f16] (rid 103671) by dgp on 2008-10-02 23:29:59:
- icomment:
See the docs for Tcl_ParseCommand: "If an error occurred in parsing the command then TCL_ERROR is returned, an error message is left in interp’s result, and no information is left at *parsePtr." You will find the error message in the interp result, not in the ::errorInfo variable.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f58f59f79b] (rid 130136) by dgp on 2008-10-02 23:31:33:
- icomment:
Use const char *msg = Tcl_GetStringResult(interp); to fix your code. If you also want ::errorInfo set, you can achieve that by adding Tcl_AddErrorInfo(interp,"") in the branch that handles the TCL_ERROR return values.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [107710084d] (rid 94976) by dgp on 2008-10-02 23:32:57:
- closedate changed to: "2008-10-02T16:32:57"
- closer changed to: "dgp"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [55c3b183a1] (rid 94205) by yurivict on 2008-10-02 23:35:45:
- icomment:
I see this problem in both tcl-8.4.19 and tcl-8.5.4 with a minor difference. In tcl-8.4.19 errorInfo is returned as an empty string and in tcl-8.5.4 -- as a null string.
- login: "yurivict"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "yurivict"
- icomment:
Ticket change [f078d793bf] (rid 109201) by yurivict on 2008-10-02 23:47:28:
- icomment:
This is quite confusing that there are so many error message variables.
- login: "yurivict"
- mimetype: "text/plain"
- username: "yurivict"
- icomment:
Ticket change [3596377ad5] (rid 106963) by dgp on 2008-10-02 23:55:48:
- closedate changed to: "2008-10-02T16:55:48"
- closer changed to: "dgp"
- foundin changed to: "obsolete: 8.4.19"
- resolution changed to: "Invalid"
- status changed to: "Closed"