From dcf70cbace29c446c77c5e1ea38f1bb223562722 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 7 Apr 2008 13:12:42 +1000 Subject: * lib/utils.exp (diff): Open both files as binary. --- ChangeLog | 4 ++++ lib/utils.exp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 210c0f5..c72ffd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-04-06 Daniel Jacobowitz + + * lib/utils.exp (diff): Open both files as binary. + 2008-04-06 Daniel Jacobowitz * 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 -- cgit v1.1