Artifacts Associated With Ticket 7d20762952
Ticket change [30d80ae9c5] (rid 193749) by anonymous on 2021-04-16 17:50:34:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The pair of error messages for extra characters after a close quote or brace is missing context information. The code is in tclParse.c at the if/else which begins: if (src[-1] == '"') { if (interp != NULL) { Tcl_SetObjResult(interp, Tcl_NewStringObj( "EXtra characters after close-quote", -1)); } parsePtr->errorType = TCL_PARSE_QUOTE_EXTRA; } else { .... I propose the following change: if (src[-1] == '"') { if (interp != NULL) { Tcl_Obj *emessage = Tcl_NewStringObj( "extra characters after close-quote at \"", -1); Tcl_AppendLimitedToObj(emessage, src, -1, 30, NULL); Tcl_SetObjResult(interp, emessage); } parsePtr->errorType = TCL_PARSE_QUOTE_EXTRA; } else { if (interp != NULL) { Tcl_Obj *emessage = Tcl_NewStringObj( "extra characters after close-brace at }", -1); Tcl_AppendLimitedToObj(emessage, src, -1, 30, NULL); Tcl_SetObjResult(interp, emessage); } parsePtr->errorType = TCL_PARSE_BRACE_EXTRA; } - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "69. Other"
- title initialized to:
extra characters after close quote or brace missing context
- type initialized to: "Bug"