Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    Why do [string is true {}] and [string is false {}] BOTH ret
    
  11. type changed to: "Bug"