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

patch for termwrap



Hi all.

I found that current dbootstrap don't write LANG setting
to /etc/environment, and now write LANG_INST and
LANGUAGE_INST to /root/dbootstrap_settings.

So this patch is needed I think to update termwrap
with the current dbootstrap action.

Can you check this and commit it to cvs tree of baseconfig ?

Thanks.

--- termwrap.orig	Sat Mar  9 09:00:56 2002
+++ termwrap	Sat Mar  9 09:06:30 2002
@@ -15,12 +15,24 @@
 ######################################################################
 ##	Set some environment variables.
 ######################################################################
-# reads /etc/environment.
-test -f /etc/environment && . /etc/environment
-
-# Set all locale related environment variables.
-LC_ALL=$LANG
-export LANG LC_ALL
+# reads configuration file.
+CONFIG=/root/dbootstrap_settings
+if [ -r $CONFIG ]
+  then
+   . $CONFIG
+# Set LANG environment variables.
+   if [ ! -z "$LANG_INST" ]
+     then
+       LANG=$LANG_INST
+       export LANG
+   fi
+# Set LANGUAGE environment variables.
+   if [ ! -z "$LANGUAGE_INST" ]
+     then
+       LANGUAGE=$LANGUAGE_INST
+       export LANGUAGE
+   fi
+fi
 
 ######################################################################
 ##	Display usage if no argument.


-- 
  Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@nifty.ne.jp>



Reply to: