# HG changeset patch # User wenzelm # Date 1548085848 -3600 # Node ID 1adc89c4a7954babb6f950de5d3a129151fb35d9 # Parent b5ecabcfb7805f6b46c4d61e77ac425b6ba56c52 clarified ML_OPTIONS on Windows; diff -r b5ecabcfb780 -r 1adc89c4a795 src/Pure/ML/ml_process.scala --- a/src/Pure/ML/ml_process.scala Mon Jan 21 15:10:26 2019 +0100 +++ b/src/Pure/ML/ml_process.scala Mon Jan 21 16:50:48 2019 +0100 @@ -129,8 +129,13 @@ val ml_runtime_options = { val ml_options = Word.explode(Isabelle_System.getenv("ML_OPTIONS")) - if (ml_options.exists(_.containsSlice("gcthreads"))) ml_options - else ml_options ::: List("--gcthreads", options.int("threads").toString) + val ml_options1 = + if (ml_options.exists(_.containsSlice("gcthreads"))) ml_options + else ml_options ::: List("--gcthreads", options.int("threads").toString) + val ml_options2 = + if (!Platform.is_windows || ml_options.exists(_.containsSlice("codepage"))) ml_options1 + else ml_options1 ::: List("--codepage", "utf8") + ml_options2 } // bash