Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <michals@microsoft.com>2015-11-06 22:12:49 +0300
committerMichal Strehovský <michals@microsoft.com>2015-11-06 22:12:49 +0300
commitef60725b052c117fe2bd0aa4a7f31dae082f2c3b (patch)
tree788e5f7a23b961a3d1135f3b397034d8545c2250 /src/System.Private.CoreLib
parentd92ccdd4338d8894b697db95369d5169925b3f16 (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.cs5
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)
{