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

Bug#210353: locales: LANG= not removed from /etc/environment



Package: locales
Version: 2.3.2-6
Severity: normal
Tags: patch

Hi,

as explained by Joey Hess in #209279, if /etc/environment already
contains a LANG= line, it won't be removed if None was selected
in the locales/default_environment_locale question.
Here is a patch; as I proposed a patch against debian/changelog
5 minutes ago, I prefer putting a new entry just below:
  - debian/locales/DEBIAN/postinst: If /etc/environment sets the LANG
    variable and a new configuration asks for not setting it, the
    line was not removed from this file.

Denis
Index: locales/DEBIAN/postinst
===================================================================
RCS file: /cvs/glibc/glibc-package/debian/locales/DEBIAN/postinst,v
retrieving revision 1.10
diff -u -r1.10 postinst
--- locales/DEBIAN/postinst	21 Aug 2003 04:06:18 -0000	1.10
+++ locales/DEBIAN/postinst	10 Sep 2003 22:48:44 -0000
@@ -55,6 +55,8 @@
     # Set default LANG environment variable
     if [ -e $EE ]; then
         sed -e '/^ *LANG=/d' $EE > $EE.tmp || true
+        #  $EE has to be updated if $SELECTED is empty or 'None'
+        cp -f $EE.tmp $EE
     else
         :> $EE.tmp
     fi

Reply to: