Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6a3f148f2313ecae4f2713e9ccb99f60c049e50e
Ticket: 623061ffffffffffffffffffffffffffffffffff
enhancement: turn off Octal
User & Date: jan.nijtmans on 2015-10-09 12:58:09
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2457305.04038794"
  3. closer changed to: "jan.nijtmans"
  4. comment changed to:
    There is such an out cry for "why did 08 blow up my 
    application" on comp.lang.tcl.* -- that I will post this 
    recommendation again.
    
    we need to create a method to help these people out....
    
    TCL already has a handful of special environment 
    variables / global variables that control the behaviour of 
    TCL  (floating point precision, debug level,  etc.)
    
    Why can't we add an environment variable to control 
    if "leading zero Octal" is used or not ?  This can be set 
    to true as the default so its backwards comaptible...
    
    then companies like mine can:
      set tcl_use_octal 0 
    
    in one of the TCL init libraries so all our users / 
    programs are covered.
    
    
    Or you can hide the environment variable by offering a 
    new command like octal people can call:
        octal none
    or a more generic tclfeatures command:
        tclfeatures nooctal
    
    Or pass a flag to expr:
      set y [expr -nooctal  $month + 1]
    (though this would not catch everthing like the other 
    methods).
    
  5. icomment:
    Since we have [http://tip.tcl.tk/114|TIP #114] and the implementation is done, we can close this RFE: there is no reason to keep track on the status in two locations.
    
    Implementation can be found already in the "novem" branch. TIP will be accepted with very high probability by the TCT.
    
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Accepted"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"