From 9c3d3e37e15e3b2a64fd2334f9e5d1fe9c510cf4 Mon Sep 17 00:00:00 2001 From: Htylol Date: Fri, 25 Jul 2025 22:13:44 +0500 Subject: [PATCH] pw_skip_get_info: Fixed the operation of LOCALE_LIST If the system uses utf8 instead of just utf, the list will not work --- data_from_portwine/scripts/functions_helper | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 740be877..970ec4d0 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2876,12 +2876,13 @@ pw_skip_get_info () { if [[ -f "${PW_TMPFS_PATH}/locale.tmp" ]] ; then GET_LOCALE_LIST="ru_RU.utf en_US.utf zh_CN.utf ja_JP.utf ko_KR.utf" - unset LOCALE_LIST + unset LOCALE_LIST LOCALE_UTF + [[ $(<"${PW_TMPFS_PATH}/locale.tmp") =~ utf8 ]] && LOCALE_UTF="8" for LOCALE in $GET_LOCALE_LIST ; do if [[ $(<"${PW_TMPFS_PATH}/locale.tmp") =~ $LOCALE ]] ; then if [[ -n "$LOCALE_LIST" ]] - then LOCALE_LIST+="!$LOCALE" - else LOCALE_LIST="$LOCALE" + then LOCALE_LIST+="!$LOCALE$LOCALE_UTF" + else LOCALE_LIST="$LOCALE$LOCALE_UTF" fi fi done