As suggested on dev@, switch test log processing from binary to text data.
As suggested on dev@, switch test log processing from binary to text data.

To mimic py2-style text files the best we can, use the codecs libaray's
open function with latin-1 encoding.  This is the first commit a short
series of patches that switch log files from binary entirely.

* build/run_tests.py
  (): Import the additional library.
  (TestHarness.run):  During the "filter log for failedlog" phase,
                      read the log file as latin-1 and write the
                      result as latin-1, too.  Processing is now
                      possible as simple strings.
  (TestHarness._open_log): When text mode is required, use latin-1
                           encoding.  As transitional code, keep the
                           plain file for binaries.

git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1744975 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion