Overview
| Artifact ID: | c68630f35b3bf3f464eec48f4136c711d0a7fff4ef775c2be95949b1a92a6b99 |
|---|---|
| Ticket: | dd010cadfb99cee6c0a38d1bd4f4927a4945f4ec
[string trim] mishandles surrogates |
| User & Date: | jan.nijtmans on 2020-04-06 15:00:13 |
Changes
- icomment:
So ... just don't do that :-) "string trim" expects a set of characters as 3th element. Since Emoji are split into 2 surrogates, it starts removing matching surrogates, indeed totally different as expected. My suggestion: Don't allow Emoji to be used in 3th argument of "string trim" The same happens when using Emoji between '[' and ']' in regular expressions. Solution: Switch to Tcl 9.0. Enhance documentation of "string trim" and regsub/regexp explaining this as known limitation.
- login: "jan.nijtmans"
- mimetype: "text/plain"