Using the http package modifies global variable 'c'
Deleted218951ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:32
OriginalBugID: 2997 Bug
Version: 8.2
SubmitDate: '1999-09-29'
LastModified: '1999-09-30'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: HP-UX
Machine: Other
FixedDate: '1999-09-30'
FixedInVersion: 8.2.1
ClosedDate: '2000-10-25'
Name:
Kåre Sjölander
ReproducibleScript:
package require http
set c 1
::http::geturl http://www.scriptics.com/
puts $c
ObservedBehavior:
any global variable named c is modified when the http package is loaded.
DesiredBehavior:
variable c shouldn't be affected
Patch:
*** /usr/local/lib/tcl8.2/http2.1/http.tcl~ Thu Aug 19 18:27:09 1999
--- /usr/local/lib/tcl8.2/http2.1/http.tcl Wed Sep 29 16:06:06 1999
***************
*** 27,32 ****
--- 27,33 ----
variable formMap
set alphanumeric a-zA-Z0-9
+ variable c
variable i 0
for {} {$i <= 256} {incr i} {
set c [format %c $i]
PatchFiles:
tcl8.2/http2.1/http.tcl
Fixed in 8.2.1
-- 09/30/1999 hobbs
welch Deleted ticket [218951ffff].
[History diff]2000-10-26 08:32:15
dgp Ticket [218951ffff]: 3 changes
[History diff]2001-04-19 03:34:31
Log in (anonymous is fine) to add a comment.