llvm-project/llvm/lib/Support/Windows
Aaron Smith 8a5ea61886 Windows needs the current codepage instead of utf8 sometimes
Llvm-mc (and tools that use Path.inc on Windows) assume that strings are utf-8 
encoded, however, this is not always the case. On Windows the default codepage 
is not utf-8, so most of the time the strings are not utf-8 encoded.

The lld test 'format-binary-non-ascii' uses llvm-mc with a file with non-ascii 
characters in the name which is how this bug was found. The test fails when run 
using Python 3 because it uses properly encoded unicode strings (Python 2 actually 
ends up using a byte string which is not utf-8 encoded, so the test passes, but 
that's separate issue). 

Patch by Stella Stamenova!

llvm-svn: 329468
2018-04-07 00:32:59 +00:00
..
COM.inc
DynamicLibrary.inc Allow clients to specify search order of DynamicLibraries. 2017-07-12 21:22:45 +00:00
Host.inc Update the Windows version of updateTripleOSVersion to account for 2017-07-07 10:08:52 +00:00
Memory.inc [Support] Support NetBSD PaX MPROTECT in sys::Memory. 2017-11-16 23:04:44 +00:00
Mutex.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Path.inc Windows needs the current codepage instead of utf8 sometimes 2018-04-07 00:32:59 +00:00
Process.inc Remove HAVE_LIBPSAPI, HAVE_SHELL32. 2018-04-02 17:32:48 +00:00
Program.inc Convenience/safety fix for llvm::sys::Execute(And|No)Wait 2017-09-13 17:03:37 +00:00
RWMutex.inc Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
Signals.inc Remove HAVE_LIBPSAPI, HAVE_SHELL32. 2018-04-02 17:32:48 +00:00
ThreadLocal.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Threading.inc Fix C2712 build error on Windows 2017-03-07 20:09:46 +00:00
Watchdog.inc
WindowsSupport.h Windows needs the current codepage instead of utf8 sometimes 2018-04-07 00:32:59 +00:00
explicit_symbols.inc