diff options
author | Michal Strehovský <michals@microsoft.com> | 2015-11-06 22:12:49 +0300 |
---|---|---|
committer | Michal Strehovský <michals@microsoft.com> | 2015-11-06 22:12:49 +0300 |
commit | ef60725b052c117fe2bd0aa4a7f31dae082f2c3b (patch) | |
tree | 788e5f7a23b961a3d1135f3b397034d8545c2250 /src/System.Private.CoreLib | |
parent | d92ccdd4338d8894b697db95369d5169925b3f16 (diff) |
Return null for LC_ALL/MESSAGES/LANG
This is a temporary workaround to prevent System.Console from taking
complicated code paths.
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Environment.EnvironmentVariables.Unix.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/src/System/Environment.EnvironmentVariables.Unix.cs b/src/System.Private.CoreLib/src/System/Environment.EnvironmentVariables.Unix.cs index 744935e53..f6c76bffd 100644 --- a/src/System.Private.CoreLib/src/System/Environment.EnvironmentVariables.Unix.cs +++ b/src/System.Private.CoreLib/src/System/Environment.EnvironmentVariables.Unix.cs @@ -57,6 +57,11 @@ namespace System if (variable == null) throw new ArgumentNullException("variable"); + // CORERT-TODO: remove this Hello World workaround + // https://github.com/dotnet/corert/issues/213 + if (variable == "LC_ALL" || variable == "LC_MESSAGES" || variable == "LANG") + return null; + byte[] variableAsBytes = Interop.StringHelper.GetBytesFromUTF8string(variable); fixed (byte* pVar = variableAsBytes) { |