Overview
| Artifact ID: | 2931ab865519cd79070ba317241a5cc69e6dfc81 |
|---|---|
| Ticket: | 686782ffffffffffffffffffffffffffffffffff
Changes to Tcl_SetObjLength() break "expect -re" |
| User & Date: | das on 2003-02-18 17:50:26 |
Changes
- icomment:
Logged In: YES user_id=90580 vince, thanks for attaching the patch, sorry for being slow. reinhardt, does this fix the problem you see? I don't have any problem with my expect -re scripts anymore with this without having to change expect. (the patch restores the abovementioned Tcl_SetObjLength side effect) if yes, this should definitely be applied before 8.4.3 for efficiency, we might want to consider new API in the future to invalidate the unicode rep explicitly without freeing its associated memory (to avoid deallocating and reallocating the unicode buffer repeatedly, thus defeating the memory optimizations in tclStringObj.c) I've proposed Tcl_InvalidateUnicode() or/and Tcl_SetUnicodeLength() (where a length param of -1 would invalidate the unicode rep)
- login: "das"
- mimetype: "text/plain"
- title changed to: "Changes to Tcl_SetObjLength() break "expect -re""
- username: "das"