Go to file
Rui Ueyama 471d0c57e7 Add getenv() wrapper that works on multibyte environment variable.
On Windows, character encoding of multibyte environment variable varies
depending on settings. The only reliable way to handle it I think is to use
GetEnvironmentVariableW().

GetEnvironmentVariableW() works on wchar_t string, which is on Windows UTF16
string. That's not ideal because we use UTF-8 as the internal encoding in LLVM.
This patch defines a wrapper function which takes and returns UTF-8 string for
GetEnvironmentVariableW().

The wrapper function does not do any conversion and just forwards the argument
to getenv() on Unix.

Differential Revision: http://llvm-reviews.chandlerc.com/D1612

llvm-svn: 190423
2013-09-10 19:45:51 +00:00
clang ObjectiveC migrator: rename inferred isXXX property, 2013-09-10 18:39:32 +00:00
clang-tools-extra clang-modernize: Fix bugs in Pass-By-Value transform 2013-09-06 22:28:53 +00:00
compiler-rt Fixup for r190410: use lazy initialization for symbolizer as some compilers emit global constructor to setup vptr 2013-09-10 16:16:27 +00:00
debuginfo-tests Auto-detect the architecture of the executable instead of using the arch of 2013-09-07 20:04:29 +00:00
libclc Parenthesize arguments for mad_hi 2013-09-09 14:36:21 +00:00
libcxx Update synopsis for list/forward_list/deque to match the allocator style of existing comment. No code change 2013-09-09 18:19:45 +00:00
libcxxabi Add ability to set OPTIONS for compile 2013-09-09 23:53:08 +00:00
lld Rename GnuLDInputGraph.h -> GnuLdInputGraph.h for consistency with other files. 2013-09-09 19:30:23 +00:00
lldb test: Add @expectedFailureFreeBSD decorators 2013-09-10 17:15:05 +00:00
llvm Add getenv() wrapper that works on multibyte environment variable. 2013-09-10 19:45:51 +00:00
polly TempScopInfo: Microoptimize constant conditions 2013-09-10 04:47:19 +00:00