diff options
Diffstat (limited to 'tclcompat.tcl')
-rw-r--r-- | tclcompat.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tclcompat.tcl b/tclcompat.tcl index 2a5560c..1509b95 100644 --- a/tclcompat.tcl +++ b/tclcompat.tcl @@ -89,7 +89,7 @@ proc {file copy} {{force {}} source target} { error "bad option \"$force\": should be -force" } - set in [open $source] + set in [open $source rb] if {[file exists $target]} { if {$force eq ""} { @@ -107,7 +107,7 @@ proc {file copy} {{force {}} source target} { return } } - set out [open $target w] + set out [open $target wb] $in copyto $out $out close } on error {msg opts} { |