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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "Tcl can't handle 8-bit file names"
- type changed to: "Bug"