Fix unit tests on Windows: handle env vars with non-ASCII chars.
authorPawel Bylica <chfast@gmail.com>
Wed, 4 Nov 2015 08:25:20 +0000 (08:25 +0000)
committerPawel Bylica <chfast@gmail.com>
Wed, 4 Nov 2015 08:25:20 +0000 (08:25 +0000)
commit7561231beeceade45332dad37c606dc7edf52867
treebfab0e4e25e9851d6aecbb721adaebff7b896298
parent15f9f37223f448c6e306b55552609f53dc07799d
Fix unit tests on Windows: handle env vars with non-ASCII chars.

Summary: On Windows we have to take UTF16 encoded env vars and convert them to UTF8. This patch fixes CopyEnvironment helper function used by process unit tests.

Reviewers: yaron.keren

Subscribers: yaron.keren, llvm-commits

Differential Revision: http://reviews.llvm.org/D14278

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252039 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Support/ProgramTest.cpp