From cb4b8bc74275f37bb15ebc9de0b2c921f8d5018a Mon Sep 17 00:00:00 2001 From: zhangcan42 Date: Thu, 20 Feb 2025 08:40:58 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96write=5Fupdater=E5=86=99?= =?UTF-8?q?=E8=AF=AD=E8=A8=80misc=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangcan42 --- utils/write_updater.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/write_updater.cpp b/utils/write_updater.cpp index 444d66d7..e8c9d9e6 100644 --- a/utils/write_updater.cpp +++ b/utils/write_updater.cpp @@ -63,8 +63,12 @@ static int WriteUpdaterPara(int argc, UpdaterPara ¶) } int res = GetParameter("persist.global.locale", "", para.language, MAX_PARA_SIZE); if (res <= 0) { - cout << "Get language parameter failed" << endl; - return -1; + cout << "Get persist.global.locale parameter failed" << endl; + res = GetParameter("const.global.locale", "", para.language, MAX_PARA_SIZE); + if (res <= 0) { + cout << "Get const.global.locale parameter failed" << endl; + return -1; + } } if (!WriteUpdaterParaMisc(para)) { cout << "WriteUpdaterParaMisc failed!" << endl; -- Gitee