This patch fixes a few issues seen when running ninja check-lldb in a Release build:
- Some binaries couldn't be found (such as lldb-vscode.exe), because .exe wasn't appended to the file name.
- Many tests used to fail since the OS error messages are not emitted in English, because of our installed French locale.
- Also, because of our codepage being Windows-1252, python failed to decode the messages.
After this patch, all tests pass with VS2017.
When building with VS2019 or Clang 10, the following tests still do not pass:
lldb-api :: python_api/lldbutil/iter/TestLLDBIterator.py lldb-shell :: SymbolFile/PDB/enums-layout.test lldb-shell :: SymbolFile/PDB/typedefs.test lldb-unit :: tools/lldb-server/tests/./LLDBServerTests.exe/StandardStartupTest.TestStopReplyContainsThreadPcs
For the first three tests above, this has to do with the debug info not being emitted as expected. I'm not sure about the last one.
llvm::array_lengthof(name);