Overview
| Artifact ID: | ce89ea694b81a685c1d9859f006a91a4cfbd3e42 |
|---|---|
| Ticket: | 218445ffffffffffffffffffffffffffffffffff
Why do [string is true {}] and [string is false {}] BOTH ret |
| User & Date: | nobody on 2000-10-26 00:57:41 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 6352 Bug Version: 8.2 SubmitDate: '2000-10-10' LastModified: '2000-10-11' Severity: LOW Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Windows NT OSVersion: NT 4 SP6a Machine: Compaq Dual Pentium!!! 550MHz, 2GB RAM FixedDate: '2000-10-25' ClosedDate: '2000-10-11' Name: Carlos Bueno CustomShell: This is the TCL package that ships with StoryServer 5.0. The only modifications made by Vignette I am aware of is the disabling of the [encoding] command. ReproducibleScript: if {[string is true {}] && [string is false {}]} { puts "huh?" } ObservedBehavior: We are using TCL 8.2 shipping with StoryServer 5.0. The docs state that "If string is any of 0, false, no, or off, then Tcl_GetBoolean stores a zero value at *boolPtr. If string is any of 1, true, yes, or on, then 1 is stored at *boolPtr." Doesn't mention behavior with empty strings, though from the above you'd assume it would always return 0. If this returning of 1 is correct, 1. Why? 2. Could you please put that in the docs? DesiredBehavior: I expect [string is true {}] and [string is false {}] to zero or explain the reason why. Please see docs. This is defined behavior when -strict is not used. -- 10/11/2000 hobbs - foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Why do [string is true {}] and [string is false {}] BOTH ret - type changed to: "Bug"