[gnome-session/benzea/bind-more-to-region: 16/16] gnome-session: Bind more LC_* variables to REGION




commit caca2e17638fb485969ebb7c098f32af209b5c5f
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Apr 16 12:34:16 2021 +0200

    gnome-session: Bind more LC_* variables 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.

 gnome-session/gnome-session.in | 11 +++++++++--
 1 file 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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]