Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bcd3ed1a8eac9552a0b108f6e245fe0f149499d8
Ticket: 3061814fffffffffffffffffffffffffffffffff
Tcl use invalid pattern for module name.
User & Date: daapp on 2010-09-08 07:53:34
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Affected versions at least 8.6b1 and 8.5.[89]
    
    1. Manual page tm.3 and source code file library/tm.tcl use different pattern for tcl modules - character "_" is not specified in
    manual page.
    
    
    2. Tcl use invalid pattern for module name, which can cause problem on Windows platform.
    
    
    Tcl module names should follow this pattern:
    
    http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/library/tm.tcl?revision=1.18&content-type=text%2Fplain&pathrev=core-8-6-b1
        set pkgpattern {^([_[:alpha:]][:_[:alnum:]]*)-([[:digit:]].*)[.]tm$}
    
    http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/library/tm.tcl?revision=1.14.2.3&view=markup&pathrev=core-8-5-9
        set pkgpattern {^([_[:alpha:]][:_[:alnum:]]*)-([[:digit:]].*)[.]tm$}
    
    
    http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/doc/tm.n?revision=1.18&view=markup&pathrev=core-8-5.9
    ([[:alpha:]][:[:alnum:]]*)-([[:digit:]].*)\e.tm 
    
    http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/doc/tm.n?revision=1.18&view=markup&pathrev=core-8-6-b1
    ([[:alpha:]][:[:alnum:]]*)-([[:digit:]].*)\e.tm 
    
    This pattern allow to use module named  a:b-1.tm, but character ":" has special meaning in Windows file names and it can't be used in names of plain files.
    
    Correct pattern for tcl modules should be:
    
        set pkgpattern {^([_[:alpha:]][_[:alnum:]]*)-([[:digit:]].*)\.tm$}
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "daapp"
  10. subsystem changed to: "39. Package Manager"
  11. title changed to: "Tcl use invalid pattern for module name."
  12. type changed to: "Bug"