Overview
| Artifact ID: | 54261be9d8e469d5df4a755f34d207b830e937a5cd23a0db99aa477db4957adc |
|---|---|
| Ticket: | debd088e48998a758f2927b67c132341954428ea
llength split is different from string length |
| User & Date: | sebres on 2025-03-03 21:49:11 |
Changes
- icomment:
> So you are proposing to split the 😊, or (worse) reverse the two halves again? Well, in 8.6 sure... because it doesn't fully support chars outside of BMP, yes it would be better than a potential for inconsistent indices/llength/iterators (depending on type of object or on the fact whether it shimmer or not), what opens a potential to BO, segfaults, vulnerabilities etc. Let alone the example with regexp shows how the common string consistency may suffer by shimmer of object. This is much "worse" than theoretical split (I don't speak about regexp, but about the principle). > That's a NO from me. But you already expected that. I'm open for another proposal to fix it, but as already supposed you don't have it, do you?.. But for instance, if one breaks everything anyway, then why just not set TCL_UTF_MAX to 4 and fix it like in 9.0? I know it would not be binary compat anymore, but it is nevertheless several times better and probably more sane than such fundamentally broken and serious violation. > In 9.0, regexp behaves as expected. Please don't use arguments like that here... I speak explicitly only about 8.6(.11+), which by the way IIRC has been changed in incompatible way without any TIP, in a patch-release. And I already wrote that it is not acceptable to say "fixed" in newest major release, because then you should surely revert it in 8.6 as failed attempt. > I cannot 100% satisfy every Tcl 8.6 user any more. Sorry Jan, but it is also not an argument... Please, don't compare a feature (no matter how sought-after by users) with a bug, that shall be fixed ASAP. And I'm sure you known that I'm not a "user" of core-tcl already dozen years (I have my own fork)... But I still care about it, because I'm a developer of Tcl as well as also a engineer and security auditor, and therefore I see that the things are basally broken now... And I hoped that my explanation would show that having emojis doesn't justify the presenсe of such malevolent bug... Again, with a potential to grow further, since nobody really knows how many commands, and by which constellations, are really affected. And an estimation of them would be a lot of work (but it is obvious to everyone knowing C-side of Tcls source code). Seems my hope has been in vain. OK, then I'd like to wait for other TCT members opinion to the subject.
- login: "sebres"
- mimetype: "text/x-markdown"