summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-04-16 12:34:16 +0200
committerRay Strode <halfline@gmail.com>2021-10-12 18:32:00 +0000
commitcaca2e17638fb485969ebb7c098f32af209b5c5f (patch)
treec5a8470b27198d0de81165f13f916e4f7d59306b
parentc8c036502534f465d3456dd2513799c757026d39 (diff)
downloadgnome-session-benzea/bind-more-to-region.tar.gz
gnome-session: Bind more LC_* variables to REGIONbenzea/bind-more-to-region
This adds both LC_ADDRESS and LC_TELEPHONE to the list of variables that are set from the configured user region. Also change the list to be in the same order as printed by the "locale" command and add comments for entries that we are not setting.
-rwxr-xr-xgnome-session/gnome-session.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnome-session/gnome-session.in b/gnome-session/gnome-session.in
index ddd1a591..b43ebaac 100755
--- a/gnome-session/gnome-session.in
+++ b/gnome-session/gnome-session.in
@@ -21,11 +21,18 @@ if [ -n "$REGION" ]; then
unset LC_TIME LC_NUMERIC LC_MONETARY LC_MEASUREMENT LC_PAPER
if [ "$LANG" != "$REGION" ] ; then
- export LC_TIME=$REGION
+ # LC_CTYPE
export LC_NUMERIC=$REGION
+ export LC_TIME=$REGION
+ # LC_COLLATE
export LC_MONETARY=$REGION
- export LC_MEASUREMENT=$REGION
+ # LC_MESSAGES
export LC_PAPER=$REGION
+ # LC_NAME
+ export LC_ADDRESS=$REGION
+ export LC_TELEPHONE=$REGION
+ export LC_MEASUREMENT=$REGION
+ # LC_IDENTIFICATION
fi
fi