iwidgets for itk4

Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e1a04f14fad87cd6a436c86072fedf2cc71ebefc
Ticket: f0036c69c9191b43a3631dd7f39a898b99517c69
scrolledhtml -import method fails on Windows with valid pathname.
User & Date: anonymous 2016-08-31 23:21:47
Changes

  1. icomment:
    The code below from the scrolledhtml widget import method will not work with Windows file pathnames.  It's wrong on a few counts.
    
              -link {
                  #
                  # got -link, so set path relative to current locale, if path
                  # is a relative pathname
                  #
                  if {[string compare "." [file dirname $filename]] == 0} {
                    set f [open $_cwd/$filename r]
                  } else {
                    if {[string index [file dirname $filename] 0] != "/" &&\
                        [string index [file dirname $filename] 0] != "~"} {
                      set f [open $_cwd/$filename r]
                      append _cwd /
                      append _cwd [file dirname $filename]
                    } else {
                      set f [open $filename r]
                      set _cwd [file dirname $filename]
                    }
                  }
              }
    
  2. login: "anonymous"
  3. mimetype: "text/x-fossil-plain"
  4. severity changed to: "Critical"
  5. status changed to: "Open"
  6. title changed to:
    scrolledhtml -import method fails on Windows with valid pathname.
    
  7. type changed to: "Code_Defect"