| Ticket UUID: | e3f481f187fa18ee20f162e07e09e761b3ae04ae | ||
| Title: | Regression to lookup non-ASCII proc formal arguments as compiled locals | ||
| Type: | Bug | Created on: | 2019-01-31 08:51:40 |
| Submitter: | anonymous | Assigned to: | sebres |
| Subsystem: | 07. Variables | Severity: | Important |
| Priority: | 5 Medium | Last modified: | 2019-02-01 13:26:30 |
| Status: | Closed | Closed by: | sebres |
| Resolution: | Fixed | Closed on: | 2019-02-01 13:26:30 |
| Version: | 8.6.9 | ||
| Description: | ||||
Trying to use non-ASCII characters (€) as names of proc formal arguments, 8.6.9 showed:
% apply {{€} { puts [set €] }} 1}
can't read "€": no such variable
same with $-parser:
% apply {{€} { puts ${€} }} 1}
can't read "€": no such variable
This appears to be a regression of [c9251294d9b8b14d] in tclProc.c (thx for sebres for confirming).
| ||||
| User Comments: | ||||
sebres added on 2019-01-31 11:44:59:
Thx, Stefan. This goes to the confusion about CompiledLocal::nameLength. This is length in bytes (not in chars as it was mistakenly assumed) everywhere in Tcl since begin of compiled locals... The fix is provided in branch fix-comp-local-utf-regres (for 8.6 and upward, 8.5 was not affected by the regression). I'll merge it later if no objections follow. sebres added on 2019-01-31 16:30:22:
compile of push var instruction (TclPushVarName) rewritten too (to be more safe here): iterators over token/strings considering utf-8 multi-bytes now. sebres added on 2019-02-01 13:26:30:
Fixed now within merge [3e12442cb7], thus closing. | ||||
