From b0b4f7a7055147166baccd7bf5c87112c5915cae Mon Sep 17 00:00:00 2001 From: Hemny Date: Mon, 7 Jun 2021 12:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AD=E6=96=87=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E8=BF=9E=E6=8E=A5=E6=B1=A0=E7=BB=91=E6=A0=B8=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98=20=E4=BF=AE=E5=A4=8D=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E7=8E=AF=E5=A2=83=E8=BF=9E=E6=8E=A5=E6=B1=A0=E7=BB=91?= =?UTF-8?q?=E6=A0=B8=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/threadpool/threadpool_controler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/process/threadpool/threadpool_controler.cpp b/src/gausskernel/process/threadpool/threadpool_controler.cpp index 43802e053..1ba912988 100644 --- a/src/gausskernel/process/threadpool/threadpool_controler.cpp +++ b/src/gausskernel/process/threadpool/threadpool_controler.cpp @@ -449,7 +449,7 @@ void ThreadPoolControler::GetCpuAndNumaNum() FILE* fp = NULL; - if ((fp = popen("lscpu", "r")) != NULL) { + if ((fp = popen("LANG=en_US.UTF-8;lscpu", "r")) != NULL) { while (fgets(buf, sizeof(buf), fp) != NULL) { if (strncmp("CPU(s)", buf, strlen("CPU(s)")) == 0 && strncmp("On-line CPU(s) list", buf, strlen("On-line CPU(s) list")) != 0 &&