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

[PATCH] localechooser: ASCII only if on cons25 terminal



This patch let localechooser not to try to print non-ascii characters
on a cons25 terminal.

This should not affect d-i images not using cons25 terminal (e.g. linux-*).


Cheers,
Luca Favatella
Index: debian/changelog
===================================================================
--- debian/changelog	(revision 60241)
+++ debian/changelog	(working copy)
@@ -3,6 +3,9 @@
   * Only check for validlocale if any locales need to be generated, as
     otherwise we won't have installed the locales package (closes: #538343).
 
+  [ Aurelien Jarno ]
+  * Don't try to print non-ascii characters on a cons25 terminal.
+
  -- Colin Watson <cjwatson@debian.org>  Sat, 25 Jul 2009 11:04:09 +0100
 
 localechooser (2.13) unstable; urgency=low
Index: localechooser
===================================================================
--- localechooser	(revision 60241)
+++ localechooser	(working copy)
@@ -66,9 +66,9 @@
 		else
 			level=1
 		fi
-		# ASCII only if we are on serial console or a dumb terminal
+		# ASCII only if we are on serial console, dumb or cons25 terminal
 		# Both variables should already be set at init time
-		if [ "$TERM_TYPE" = "serial" ] || [ "$TERM" = "dumb" ]; then
+		if [ "$TERM_TYPE" = "serial" ] || [ "$TERM" = "dumb" ] || [ "$TERM" = "cons25" ] ; then
 			level=0
 		fi
 		;;

Reply to: