Overview
| Artifact ID: | a5f8c21c9e6c05bad0b97d0d4a44c018c35c31e4656ef88e86927182a5d085a3 |
|---|---|
| Ticket: | 4c591fa4875b64fe29ff0c65be3902c28424797d
[string compare] EIAS violation |
| User & Date: | dgp on 2020-04-30 21:54:19 |
Changes
- icomment:
The simplest approach would be to eliminate the internal calls to the deprecated routine Tcl_UniCharNcmp(). Then all compares would route through the same routine and get consistent results. Two problems with that. 1) The "Unicode" internal rep was invented because performance of some tasks was impossibly terrible without it. We risk bringing that back. 2) We end up with a [string compare -length ] command that counts its lengths by characters while things like [string length] still count by UTF-16 units which make combining these commands correctly quite tricky. Once we open this door even a little bit, I think we will not be happy until all lengths and indexing operate on characters and not code units.
- login: "dgp"
- mimetype: "text/plain"