Skip to content

Commit

Permalink
Locale
Browse files Browse the repository at this point in the history
  • Loading branch information
green-green-avk committed Nov 7, 2021
1 parent 6ccd91a commit e1ece55
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions install-linuxcontainers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ trap 'exit 1' INT HUP QUIT TERM ALRM USR1

TERMSH="$LIB_DIR/libtermsh.so"

# === Locale ===
if [ -z "$LANG" ] ; then
export LANG='en_US.UTF-8'
else
case "$LANG" in
*.utf*|*.UTF*) ;;
*) export LANG="${LANG%.*}.UTF-8" ;;
esac
fi
# === ===

if [ "$1" = '-a' ] ; then
NI=1
shift
Expand Down

0 comments on commit e1ece55

Please sign in to comment.