Here are patches for this bug for sarge and sid.  The sarge patch
takes the conservative approach and unsets LC_ALL And later sets it
again, and the sid version completely removes LC_ALL.  It would be
nice to get this change into sarge since serial consoles installs are
quite ugly without it.

-- 
Martin Michlmayr
http://www.cyrius.com/
--- termwrap~   2004-12-29 20:19:17.000000000 +0000
+++ termwrap    2004-12-29 20:20:42.000000000 +0000
@@ -199,6 +199,8 @@
 ######################################################################
 ##     Recognize terminal type.
 ######################################################################
+ORIG_LC_ALL=$LC_ALL
+unset LC_ALL
 case `/usr/bin/tty` in
 /dev/console)
        # Use fgconsole to detect if it is a serial console.
@@ -236,6 +238,8 @@
        TERMINAL=serial
        ;;
 esac
+LC_ALL=$ORIG_LC_ALL
+export LC_ALL
 
 # If the default linux kernel TERM setting is used for serial consoles, change
 # it to vt100.  This assume serial consoles understand vt100.  Almost
--- termwrap~   2004-12-29 20:19:17.000000000 +0000
+++ termwrap    2004-12-29 21:03:58.000000000 +0000
@@ -169,9 +169,8 @@
                                unset LANGUAGE_INST
                        fi
                        LANG=$LANG_INST
-                       LC_ALL=$LANG_INST
                        LC_COLLATE=C
-                       export LANG LC_ALL LC_COLLATE
+                       export LANG LC_COLLATE
                        unset LANG_INST
                else
                        unset LANG_INST
@@ -184,9 +183,8 @@
                        unset LANGUAGE_INST
                fi
                LANG=$LANG_INST
-               LC_ALL=$LANG_INST
                LC_COLLATE=C
-               export LANG LC_ALL LC_COLLATE
+               export LANG LC_COLLATE
                unset LANG_INST
        fi
 

Reply via email to