slitaz-boot-scripts diff etc/init.d/system.sh @ rev 467

gettext needs locale definition files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 21 14:07:33 2021 +0000 (2021-02-21)
parents 7763f4f1665c
children d37d21683dd1
line diff
     1.1 --- a/etc/init.d/system.sh	Thu Feb 02 09:19:47 2017 +0200
     1.2 +++ b/etc/init.d/system.sh	Sun Feb 21 14:07:33 2021 +0000
     1.3 @@ -31,6 +31,8 @@
     1.4  fi
     1.5  . /etc/locale.conf
     1.6  action 'Setting system locale: %s' "$LANG"
     1.7 +[ -d /usr/lib/locale/${LANG%.*} ] ||
     1.8 +localdef -i ${LANG%.*} -c -f UTF-8 /usr/lib/locale/${LANG%.*}
     1.9  export LC_ALL=$LANG
    1.10  status
    1.11