Skip to content

Commit

Permalink
#export LANG,LANGUAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Apr 17, 2024
1 parent 762cf23 commit 1afdbd3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flux/src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ test -z "$DBUS_SESSION_BUS_ADDRESS" || env_dbus=",DBUS_SESSION_BUS_ADDRESS=\"$DB
# https://hub.fastgit.org/hectorm/docker-xubuntu/blob/master/scripts/bin/container-init
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export DISPLAY=:$VNC_OFFSET
if [ ! -z "$L" ]; then #export LANG,LANGUAGE
charset=${L##*.}; test "$charset" == "$L" && charset="UTF-8" || echo "charset: $charset"
lang_area=${L%%.*}
export LANG=${lang_area}.${charset}
export LANGUAGE=${lang_area}:en #default> en
echo "====LANG: $LANG, LANGUAGE: $LANGUAGE=========================="
fi
#| grep -Ev '^(.*PASS.*|PWD|OLDPWD|HOME|USER|SHELL|TERM|([^=]*(PASSWORD|SECRET)[^=]*))=' \
env \
|grep -Ev '_PASS$|^SHLVL|^HOSTNAME|^PWD|^OLDPWD|^HOME|^USER|^SHELL|^TERM' \
Expand Down

0 comments on commit 1afdbd3

Please sign in to comment.