Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c6e07e747d01878ee82e4599d4f95aa64e8f2692
Ticket: 39f6304c2e90549c209cd11a7920dc9921b9f48e
Tcl_LinkVar is not tolerant to minus, plus, dot
User & Date: fvogel on 2017-01-20 07:22:10
Changes

  1. assignee changed to: "jan.nijtmans"
  2. icomment:
    Marty Sereno (the OP) reports by email:
    
    <verbatim>
    ###########################################################
    ### tcl 8.5.19
    tar xvfz Tcl+Source+Code-3bb0eb915b.tar.gz
    cd Tcl_Source_Code-3bb0eb915b/unix
    ./configure
    make
    cd ../..
    setenv TCL_LIBRARY ./Tcl_Source_Code-3bb0eb915b/library
    setenv DYLD_LIBRARY ./Tcl_Source_Code-3bb0eb915b/unix
    ./Tcl_Source_Code-3bb0eb915b/unix/tclsh => OK
    
    ### tk 8.5.19
    tar xvfz Tk+Source+Code-e11410b5.tar.gz
    cd Tk_Source_Code-e11410b5/unix
    ./configure --with-tcl=../../Tcl_Source_Code-3bb0eb915b/unix
    make
    setenv TK_LIBRARY ./Tk_Source_Code-e11410b5/library
    setenv DYLD_LIBRARY_PATH ./Tcl_Source_Code-3bb0eb915b/unix:./Tk_Source_Code-e11410b5/unix
    ./Tk_Source_Code-e11410b5/unix/wish => OK
    
    ### tiny.c, tiny.tcl
    setenv LD_LIBRARY_PATH ./Tcl_Source_Code-3bb0eb915b/unix:./Tk_Source_Code-e11410b5/unix
    set path = (./Tcl_Source_Code-3bb0eb915b/unix ./Tk_Source_Code-e11410b5/unix $path)
    cp ../tiny.c .
    gcc tiny.c -I/opt/X11/include -I./Tcl_Source_Code-3bb0eb915b/generic -I./Tk_Source_Code-e11410b5/generic -lX11 -L/opt/X11/lib -L./Tcl_Source_Code-3bb0eb915b/unix -L./Tk_Source_Code-e11410b5/unix -ltcl8.5 -ltk8.5 -o tiny
    tiny
    ###########################################################
    
    You can now type in a bare '-' (and '+', etc)
    into an empty entry.
    
    But one major difference from the previous state
    is that now, there is a "variable must have integer/real
    value" Application Error when you completely clear the
    entry.
    
    Say there is a "2" in the entry.
    
    With tk::entry, you get an error if
    you backspace to nothing, but no error
    if you select what is in there and
    begin typing "-2" (implied delete).
    
    With ttk::entry, you get an error if
    you backspace to nothing, but you
    *also* get an error if you select what
    is in there and begin typing "-2"
    (implied delete).
    
    Before, both tk::entry and ttk::entry
    would allow the entry to be empty
    without an error.
    
    I think that an empty entry should still
    be allowed.
    </verbatim>
    
    I'm assigning to you, Jan, since you did the fix. Could you please have a further look? Thanks!
    
  3. login: "fvogel"
  4. mimetype: "text/x-fossil-wiki"