Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cfa3e02e2741229e1c74bafc99a47db125c4c953
Ticket: 217967ffffffffffffffffffffffffffffffffff
Tcl can't handle 8-bit file names
User & Date: nobody on 2000-10-26 00:46:55
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4689 Bug
    Version: 8.2
    SubmitDate: '2000-03-29'
    LastModified: '2000-03-29'
    Severity: CRIT
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 3276
    OS: Windows NT
    FixedDate: '2000-10-25'
    ClosedDate: '2000-03-29'
    
    
    Name:
    Chris Nelson
    
    ReproducibleScript:
    The following script fails in wish 8.2 on WinNT
    
    set fid [open "\101\102\103\201\202\203.txt" w]
    puts $fid "Version:$tcl_version"
    foreach e [array names tcl_platform] {
        puts $fid "$e: $tcl_platform($e)"
    }
    puts $fid "encoding: [encoding system]"
    puts $fid "A header"
    for {set i 0} {$i < 256} { incr i} {
        puts $fid "$i [format %c $i]"
    }
    puts $fid "A trailer"
    close $fid
    
    set filename [tk_getOpenFile]
    if {[string length $filename]} {
        puts stderr "You picked:$filename"
        set fid [open $filename r]
        set lines [read $fid]
        puts $lines
        close $fid
    }
    exit
    
    ObservedBehavior:
    When you select the file from the first step in the tk_getOpenFile, the [open $filename r] errors and says that the file doesn't exist. This sort of works on UNIX (not all the characters appear as one might expect but there are no errors).
    
    DesiredBehavior:
    [open] should accept 8-bit (non-ASCII) filenames.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Tcl can't handle 8-bit file names"
  11. type changed to: "Bug"