|
2019-03-11
| ||
| 17:05 | • Ticket [408568ffff] Variable substitution parsing limited to ASCII alphanumerics... artifact: f3e6f00b8a user: sebres | |
| 16:55 | • Ticket [408568ffff]: 3 changes artifact: 464ad86316 user: sebres | |
|
2019-03-08
| ||
| 09:56 | • Open ticket [408568ffff]. artifact: cf704d28ea user: sebres | |
| 00:55 | • Pending ticket [408568ffff]. artifact: c19ad33d56 user: sebres | |
| 00:44 | fixes [408568] "variable substitution parsing limited to ASCII alphanumerics" check-in: 4c5d9c6963 user: sebres tags: bug-408568 | |
| 00:34 | test case for [408568] "variable substitution parsing limited to ASCII alphanumerics": illustrating ... check-in: 745068c247 user: sebres tags: bug-408568 | |
|
2019-02-06
| ||
| 19:17 | • Ticket [408568ffff] Variable substitution parsing limited to ASCII alphanumerics... artifact: 11b28ea2ec user: sebres | |
|
2008-11-06
| ||
| 06:52 | • Ticket [408568ffff]: 1 change artifact: 2c7b7d0147 user: dgp | |
| 02:22 | • Ticket [408568ffff]: 1 change artifact: ddd6eb79d1 user: dgp | |
|
2008-05-26
| ||
| 12:11 | • Ticket [408568ffff]: 5 changes artifact: 90c7176e8d user: kennykb | |
|
2001-08-07
| ||
| 05:49 | • Ticket [408568ffff]: 4 changes artifact: 37742efe19 user: hobbs | |
|
2001-08-02
| ||
| 08:38 | • Ticket [408568ffff]: 1 change artifact: 7342610e1b user: hobbs | |
|
2001-03-14
| ||
| 19:08 | • New ticket [408568ffff]. artifact: 451591e895 user: kennykb | |
Variable substitution parsing limited to ASCII alphanumerics
Dollar-substitution breaks down in the presence of characters that are not in ISO-8859-1.
The problem is that tclParse.c (line 1740 in 8.4a2) has the code:
c = UCHAR(ch);
if (isalnum(c) || (c == '_')) { /* INTL: ISO only, UCHAR. */
I think this should almost certainly be replaced with a call to Tcl_UniCharIsAlnum.
Logged In: YES
user_id=72656
More is necessary than just adjusting that one line, but
there is also the question of whether that is the intention
or not. The problem is that vars written in \u sequence
won't get interped inside ${...}, but who is doing that?
Logged In: YES user_id=99768 Originator: YES dgp claimed on the chat to be looking at the possibility of recognizing non-Latin1 names
Assigned to me in order to provide a branch of me, solved this for >= 8.5 (just for record). I'll reassign this back to Don, once I get it pushed (rebased).
Well, I rebased my fix in branch bug-408568, where first commit illustrates the "bug" and second fixes it.
Although this is based on another branch, because it covers similar utf-8 regression (which was already fixed in 8.6), but also solves too large discrepancy for lot of code compared to 8.6 (it makes just more simpler to me working on some 8.5/8.6 mixed branches on my side, because avoids many conflicts there).
Assigned back to Don as promised :).
This had a certain conflict within test-case "parse-12.26", but it is wanted here (it is variable now), therefore test is adjusted in the branch.
Also note [d2ffcca163] for related subject (non-ascii variable handling).
Other similar ticket [1511357] (as noticed by dgp in chat) which could be simply resolved now using new function TclFindBarewordEndUni.
Just for the record - example illustrating a certain inconsistency:
proc ::tcl::mathfunc::пи {} {return 3.14}
puts [::tcl::mathfunc::пи]
puts expr:[expr {пи()}]