Artifacts Associated With Ticket 821499
Ticket change [0d46d633ee] (rid 114333) by dgp on 2003-10-10 21:38:50:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
#include "tcl.h" int main(int argc, char **argv) { Tcl_UniChar ch = 0; Tcl_Obj *objPtr = Tcl_NewUnicodeObj(&ch,0); Tcl_AppendToObj(objPtr,"\302\242",1); ch = Tcl_GetUniChar(objPtr, 0); if (ch != 0xC2) { printf("BUG!\n"); if (ch == 0xA2) { printf("Tcl_AppendToObj scanned > 1 byte\n"); } } } Compile and run this test program for evidence that Tcl_AppendToObj does not honor its length argument. It will scan more than "length" bytes if it thinks it's in the middle of a UTF-8 sequence. - foundin initialized to: "obsolete: 8.5a0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "10. Objects"
- title initialized to: "Tcl_AppendToObj disobeys length "
- type initialized to: "Bug"
Ticket change [1c5d31f7e8] (rid 90587) by jenglish on 2003-10-11 07:14:29:
- icomment:
Logged In: YES user_id=68433 I think a case can be made that this is an illegal use of Tcl_AppendToObj(). It's not clear from the documentation whether Tcl_AppendToObj() expects UTF-8 or "Lax UTF-8" as input. If the former, then this isn't actually a bug, since the input is illegal. If the latter, then it is a bug.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [8f9c197635] (rid 120308) by hobbs on 2004-02-07 02:37:05:
- icomment:
Logged In: YES user_id=72656 let's call this a doc bug ... Tcl_AppendToObj should say something about "undefined behavior when invalid utf-8 sequences are passed".
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [52635e6667] (rid 126308) by msofer on 2004-03-27 04:54:37:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=148712 Doc bug about utf-8 stuff? Better leave it to people who know: dgp?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [a933a958da] (rid 99115) by dgp on 2004-03-27 04:58:56:
- assignee changed to: "jenglish"
- icomment:
Logged In: YES user_id=80530 I'm the wrong guy for the prescribed fix.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"