Overview
| Artifact ID: | 1657bb5405524664374a738270a9937c36fa73a3 |
|---|---|
| Ticket: | 635200ffffffffffffffffffffffffffffffffff
string obj unicode efficiency |
| User & Date: | vincentdarley on 2002-11-12 05:10:19 |
Changes
- icomment:
Logged In: YES user_id=32170 Had a closer look at the code. The basic problem is this: Objects with a Unicode internal representation can have their string representation invalidated (as when more Unicode bytes are appended to the object), so that 'objPtr->bytes == NULL'. If, at that point, either Tcl_SetObjLength or Tcl_AttemptSetObjLength is called, the object is in a bad state. Neither of those functions knows what they are doing in that case (in fact, the first thing they do is invalidate the Unicode representation which is terribly wasteful!), and they end of placing the object in a state from which is cannot recover (both internal and string rep are gone).. I don't have enough expertise in this area to go much further, so I'd appreciate any help.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"