Skip to content

Commit 8a72ffb

Browse files
authored
always add C.utf8 locale
1 parent d9c608d commit 8a72ffb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

useful-tools/quick-sharun.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,12 @@ done <<-EOF
15631563
$ADD_DIR
15641564
EOF
15651565

1566+
# some apps may crash when they fallback to C locale because they need an utf8 locale
1567+
if [ -d /usr/lib/locale/C.utf8 ] && [ ! -d "$APPDIR"/shared/lib/locale/C.utf8 ]; then
1568+
mkdir -p "$APPDIR"/shared/lib/locale
1569+
cp -r /usr/lib/locale/C.utf8 "$APPDIR"/shared/lib/locale
1570+
fi
1571+
15661572
# wrap any executable in lib with sharun
15671573
for b in $(find "$APPDIR"/shared/lib/ -type f ! -name '*.so*'); do
15681574
if [ -x "$b" ] && [ -x "$APPDIR"/shared/bin/"${b##*/}" ]; then

0 commit comments

Comments
 (0)