Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_SubstObj halts on NULL

Closed / Fixed685106ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-02-12 04:25:42
When Tcl_SubstObj encounters a NULL byte,
it stop substituting and returns its result.

If one accepts the proposition that [subst]
ought to do the same thing that Tcl evaluation
does to byte sequences quoted by "", then
this is incorrect.  Tcl's parsing/evaluation
engine is happy to treat a NULL as just
another character (event though it doesn't
belong in a Tcl-proper UTF-8 encoded string).
dkfplain2003-02-12 16:33:30
Logged In: YES 
user_id=79902

It uses the same parsing routine as in 8.0, but I wonder if
there should be other fixes as well to take into account of
the known length of strings at the same time...
dgp Ticket [685106ffff]: 1 change [History diff]2003-03-05 13:55:59
dgpplain2003-03-13 01:18:45
Logged In: YES 
user_id=80530

simple correction applied
to core-8-4-branch.

still an issue in the HEAD.
dgpplain2003-03-13 10:00:57
Logged In: YES 
user_id=80530

latest commits squash this bug on the HEAD.
Log in (anonymous is fine) to add a comment.