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




commit 5f16cf61f362b43673f13f3184affccd79a2becc
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]