From 6083ceac1e3e5e08217da733ae3dac08b27f85bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Mon, 28 Sep 2020 21:08:11 +0200 Subject: [PATCH] fix #2295 --- Compiler/ConsoleCompilerCommands.cs | 1 + Compiler/RemoteCompiler.cs | 2 ++ pabcnetc/CommandConsoleCompiler.cs | 3 +++ 3 files changed, 6 insertions(+) diff --git a/Compiler/ConsoleCompilerCommands.cs b/Compiler/ConsoleCompilerCommands.cs index ddfd4ca76..bd2bb8b44 100644 --- a/Compiler/ConsoleCompilerCommands.cs +++ b/Compiler/ConsoleCompilerCommands.cs @@ -49,5 +49,6 @@ namespace PascalABCCompiler public const int CompilerOptionsProjectCompiled = 225; public const int UseDllForSystemUnits = 226; public const int IDELocale = 227; + public const int CompilerLocale = 228; } } diff --git a/Compiler/RemoteCompiler.cs b/Compiler/RemoteCompiler.cs index 10aabe3b6..ee9729dfa 100644 --- a/Compiler/RemoteCompiler.cs +++ b/Compiler/RemoteCompiler.cs @@ -370,6 +370,8 @@ namespace PascalABCCompiler //sendCommand(ConsoleCompilerConstants.CompilerOptionsOutputDirectory, dir_name); sendObjectAsByteArray(ConsoleCompilerConstants.CompilerOptionsOutputDirectory, compilerOptions.OutputDirectory); sendCommand(ConsoleCompilerConstants.CompilerOptionsClearStandartModules); + if (compilerOptions.Locale != null) + sendCommand(ConsoleCompilerConstants.CompilerLocale, compilerOptions.Locale); foreach (PascalABCCompiler.CompilerOptions.StandartModule sm in compilerOptions.StandartModules) sendCommand( ConsoleCompilerConstants.CompilerOptionsStandartModule, diff --git a/pabcnetc/CommandConsoleCompiler.cs b/pabcnetc/CommandConsoleCompiler.cs index 98601fbfd..6aeebd380 100644 --- a/pabcnetc/CommandConsoleCompiler.cs +++ b/pabcnetc/CommandConsoleCompiler.cs @@ -282,6 +282,9 @@ namespace PascalABCCompiler case ConsoleCompilerConstants.CompilerOptions: compiler.CompilerOptions = (CompilerOptions)ReadObject(); break; + case ConsoleCompilerConstants.CompilerLocale: + compiler.CompilerOptions.Locale = arg; + break; case ConsoleCompilerConstants.IDELocale: /*int n = Convert.ToInt32(arg); if (n < StringResourcesLanguage.AccessibleLanguages.Count && n >= 0)