unexpected stack trace in "unknown"
Closed / Duplicate772318ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-07-16 13:49:52
This script illustrates the problem:
set auto_index(foo) [list proc foo {args} { return -code
1 "cancel" }]
set blah [string repeat "\u2022abcdefg " 20]
foo $blah
The problem arises because unknown makes a string
comparison using 'string length', whereas the core code,
it seems uses the first 160 bytes rather than chars of
the string.
If we remove the '\u2022' unicode sequence from 'blah',
then all is ok.
vincentdarleyplain2003-07-16 21:16:02
Logged In: YES user_id=32170 Searching for '150' in tcl/generic shows a number of places where there may be problems. It wouldn't surprise me if multi- byte characters are even split into pieces by the core code.
dgpplain2003-07-16 21:19:29
Logged In: YES user_id=80530 this appears to be a duplicate of Bug 760872. And has nothing to do with TIP 90.
vincentdarleyplain2003-07-17 16:57:14
Logged In: YES user_id=32170 Ok -- thanks. Looking more closely at the code it is clearly only coincidence that I've just seen the bug since tip90, since it has always been there.
dgp Closed ticket [772318ffff].
[History diff]2003-07-17 20:34:30
Log in (anonymous is fine) to add a comment.