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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2015-08-20 16:40:26 +0300
committerMarek Safar <marek.safar@gmail.com>2015-08-20 16:40:26 +0300
commit0806ff5baf5140ccc3525c85ff661313b4c9bcef (patch)
tree116aee505d7336d30f79365bf94d6b8d558cc9a5 /mcs/class/System/System.Diagnostics/Process.cs
parent8721a9ccc3140ac4576e91b23af497b7497fec16 (diff)
Fixes mobile build
Diffstat (limited to 'mcs/class/System/System.Diagnostics/Process.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/Process.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs
index ae4259ff4c0..a3147ffc727 100644
--- a/mcs/class/System/System.Diagnostics/Process.cs
+++ b/mcs/class/System/System.Diagnostics/Process.cs
@@ -1124,7 +1124,12 @@ namespace System.Diagnostics {
//
// MonoIO.Close (stdin_read, out error);
- process.input_stream = new StreamWriter (new FileStream (new SafeFileHandle (stdin_write, false), FileAccess.Write, 8192, false), Console.InputEncoding) {
+#if MOBILE
+ var stdinEncoding = Encoding.Default;
+#else
+ var stdinEncoding = Console.InputEncoding;
+#endif
+ process.input_stream = new StreamWriter (new FileStream (new SafeFileHandle (stdin_write, false), FileAccess.Write, 8192, false), stdinEncoding) {
AutoFlush = true
};
}