|
2001-04-14
| ||
| 02:53 | • Ticket [217967ffff] Tcl can't handle 8-bit file names status still Close... artifact: 358ed6d76a user: dgp | |
|
2000-10-26
| ||
| 08:10 | • Closed ticket [217967ffff]. artifact: 90506f67a6 user: welch | |
| 00:46 | • New ticket [217967ffff]. artifact: cfa3e02e27 user: nobody | |
Tcl can't handle 8-bit file names
Closed / Fixed217967ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:46:55
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.
welch Closed ticket [217967ffff].
[History diff]2000-10-26 08:10:56
dgp Ticket [217967ffff]: 3 changes
[History diff]2001-04-14 02:53:30
Log in (anonymous is fine) to add a comment.