From b23e7b60378bbc78fe80ee1ec895d847318b3ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Thu, 12 Aug 2021 10:16:42 +0800 Subject: [PATCH] java utf-8 --- trunk/core/judge_client/judge_client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/core/judge_client/judge_client.cc b/trunk/core/judge_client/judge_client.cc index da917a5e30e..e50634f62af 100644 --- a/trunk/core/judge_client/judge_client.cc +++ b/trunk/core/judge_client/judge_client.cc @@ -2400,9 +2400,9 @@ void run_solution(int &lang, char *work_dir, double &time_lmt, int &usedtime, sprintf(java_xmx, "-Xmx%dM", mem_lmt); //sprintf(java_xmx, "-XX:MaxPermSize=%dM", mem_lmt); - execl("/usr/bin/java", "/usr/bin/java",java_xmx , + execle("/usr/bin/java", "/usr/bin/java",java_xmx , "-Djava.security.manager", - "-Djava.security.policy=./java.policy", "Main", (char *) NULL); + "-Djava.security.policy=./java.policy", "Main", (char *) NULL,envp); break; case 4: //system("/ruby Main.rb