Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4082ed905c16796d417cc5bd27fb172c44dfbc54
Ticket: 1376892fffffffffffffffffffffffffffffffff
[:print:] wrong behaviour
User & Date: dkf on 2005-12-09 16:19:55
Changes

  1. icomment:
    Logged In: YES 
    user_id=79902
    
    It seems that Perl defines [[:print:]] as
    [[:space:][:graph:]] and we define it as [[:alnum:]] (and
    yes, it is documented that way.) Or perhaps [:blank:]
    instead of [:space:], the documentation being a bit hazy in
    that respect.
    
    The question is, what *should* we do?
    
    The following procedure helps with checking these sorts of
    things out:
       proc matches args {
          set RE [format {[[:%s:]]} [join $args ":\]\[:"]]
          for {set i 32} {$i<127} {incr i} {
             set c [format %c $i]
             puts -nonewline "$c-[regexp $RE $c]\t"
          }
          puts ""
       }
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"