Bug#200347: locales: /etc/environment should export LANG
Package: locales
Version: 2.3.1-17
Severity: normal
/etc/environment should export LANG. I explain why in bug #200345.
Patch for locales.postinst:
--- /var/lib/dpkg/info/locales.postinst.orig 2003-07-07 17:38:47.000000000 +0200
+++ /var/lib/dpkg/info/locales.postinst 2003-07-07 17:39:17.000000000 +0200
@@ -41,7 +41,7 @@
if [ -n "$SELECTED" -a "$SELECTED" != "Leave alone" ]; then
umask 022
grep -v '^LANG=' /etc/environment > /etc/environment.tmp 2> /dev/null || true
- test "$SELECTED" = "None" || echo "LANG=$SELECTED" >> /etc/environment.tmp
+ test "$SELECTED" = "None" || echo "LANG=$SELECTED ; export LANG" >> /etc/environment.tmp
cat /etc/environment.tmp > /etc/environment
rm -f /etc/environment.tmp
fi
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux zarathustra 2.4.21-zarathustra #1 Tue Jul 1 13:50:44 CEST 2003 i686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
Versions of packages locales depends on:
ii debconf 1.2.42 Debian configuration management sy
ii libc6 [glibc-2.3.1-17] 2.3.1-17 GNU C Library: Shared libraries an
-- debconf information:
* locales/default_environment_locale: en_US.UTF-8
* locales/locales_to_be_generated: de_CH.UTF-8 UTF-8, en_US.ISO-8859-15 ISO-8859-15, en_US.UTF-8 UTF-8
Reply to: