| Description: |
revision 1.29 of base64.tcl (latest revision) has an unset in the namespace eval base64 call when Trf isn't present. The specific line is:
199: unset base64_tmp i char len val
It also uses base64_tmp, i, char, len, and val earlier within the namespace eval. Since they're never declared with a "variable" call, they're resolved to global namespace. So the following example results in unappreciated behavior:
set i 0
package require base64
puts $i
The variable i is unset by base64. This should really be fixed by removing the "unset" call in namespace eval, and instead declaring these temporary variables in namespace scope with calls to variable.
Fix:
add after line 161: variable base64_tmp; variable i; variable char; variable len; variable val
remove line 199: unset base64_tmp i char len val
|