Resubmit r258759 with proper unicode handling.
authorZachary Turner <zturner@google.com>
Wed, 27 Jan 2016 19:00:51 +0000 (19:00 +0000)
committerZachary Turner <zturner@google.com>
Wed, 27 Jan 2016 19:00:51 +0000 (19:00 +0000)
commit671e6340da589fe94d30fa97fb3c89318881a775
tree9ca438b32799605efaa0b2b22adf26fa265ea937
parente89a66bd4a30a9c421405f56aa93ce6818fdddc7
Resubmit r258759 with proper unicode handling.

Instead of opening the file in unicode mode, we need only encode
data which potentially has non-ASCII characters as UTF8 before
writing.  This should work across both Python versions, and is
also far simpler than anything else discussed.

llvm-svn: 258969
lldb/packages/Python/lldbsuite/test/lang/cpp/char1632_t/TestChar1632T.py
lldb/packages/Python/lldbsuite/test/lldbtest.py