Browse Source

* lib/utils.exp (diff): Open both files as binary.

dejagnu-1.5
Ben Elliston 19 years ago
parent
commit
7366d4887c
  1. 4
      ChangeLog
  2. 2
      lib/utils.exp

4
ChangeLog

@ -1,3 +1,7 @@
2008-04-06 Daniel Jacobowitz <drow@false.org>
* lib/utils.exp (diff): Open both files as binary.
2008-04-06 Daniel Jacobowitz <dan@codesourcery.com>
* dejagnu.h (totals): Correct typos.

2
lib/utils.exp

@ -320,6 +320,7 @@ proc diff { file_1 file_2 } {
if {[file exists ${file_1}]} {
set file_a [open ${file_1} r]
fconfigure $file_a -encoding binary
} else {
warning "${file_1} doesn't exist"
return 0
@ -327,6 +328,7 @@ proc diff { file_1 file_2 } {
if {[file exists ${file_2}]} {
set file_b [open ${file_2} r]
fconfigure $file_b -encoding binary
} else {
warning "${file_2} doesn't exist"
return 0

Loading…
Cancel
Save