aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@gnu.org>2008-04-07 13:12:42 +1000
committerBen Elliston <bje@gnu.org>2008-04-07 13:23:36 +1000
commit7366d4887cca6839218272fc298cd1a1fb708b39 (patch)
tree084ba17d573ae20e245d70614e6ef4bd0506dfc8
parente851526d060d3bcd487a20cde9704fe93773c1d7 (diff)
downloaddejagnu-7366d4887cca6839218272fc298cd1a1fb708b39.zip
dejagnu-7366d4887cca6839218272fc298cd1a1fb708b39.tar.gz
dejagnu-7366d4887cca6839218272fc298cd1a1fb708b39.tar.bz2
* lib/utils.exp (diff): Open both files as binary.
-rw-r--r--ChangeLog4
-rw-r--r--lib/utils.exp2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8edd801..b3365d4 100644
--- a/ChangeLog
+++ b/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.
diff --git a/lib/utils.exp b/lib/utils.exp
index 9c9575d..6c9ff98 100644
--- a/lib/utils.exp
+++ b/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