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

Bug#250789: patch: do not reset console font



 I propose attached patch to fix this problem. It removes console
resetting code from termwrap. I am sure that the only effect from using
this patch is that console after termwrap will be with settings used
during second stage (state suitable for used language). Patch does not
change anything for languages that require terminal emulators.
 
-- 
Eugeniy Meshcheryakov

Kyiv National Taras Shevchenko University
Information and Computing Centre
http://icc.univ.kiev.ua
Index: termwrap
===================================================================
--- termwrap	(revision 1285)
+++ termwrap	(working copy)
@@ -396,49 +396,3 @@
 
 $@
 
-# The console font loaded before termwrap started.  No idea how to
-# detect it, so we assume it was ISO-8859-1.
-ORIG_ENCODING="ISO-8859-1"
-ORIG_ACM="iso01"
-ORIG_FONT="lat0-sun16"
-
-case $ENCODING in
-ISO-8859-1)
-	# Nothing to do, using default config
-	;;
-ISO-8859-2)
-	# Unload ISO-8859-2 charset mapping, by loading ISO-8859-1 instead
-	try_load_charset $ORIG_ENCODING $ORIG_ACM $ORIG_FONT
-	;;
-ISO-8859-7)
-	# Unload ISO-8859-7 charset mapping, by loading ISO-8859-1 instead
-	try_load_charset $ORIG_ENCODING $ORIG_ACM $ORIG_FONT
-	;;
-ISO-8859-9)
-	# Unload ISO-8859-9 charset mapping, by loading ISO-8859-1 instead
-	try_load_charset $ORIG_ENCODING $ORIG_ACM $ORIG_FONT
-        ;;
-ISO-8859-13)
-	# Unload ISO-8859-13 charset mapping, by loading ISO-8859-1 instead
-	try_load_charset $ORIG_ENCODING $ORIG_ACM $ORIG_FONT
-	;;
-ISO-8859-15)
-	# Unload ISO-8859-15 charset mapping, by loading ISO-8859-1 instead
-	try_load_charset $ORIG_ENCODING $ORIG_ACM $ORIG_FONT
-	;;
-KOI8-R|KOI8-U)
-	# Unload KOI8-R or KOI8-U charset mapping, by loading ISO-8859-1 instead
-	try_load_charset $ORIG_ENCODING $ORIG_ACM $ORIG_FONT
-	;;
-UTF-8)
-	# Disable UTF-8 in console
-	#if [ "$TERM" = console ] ; then
-	#	echo -ne "\033%@"
-	#else
-	#	: # Nothing to do
-	#fi
-	;;
-*)
-	# Nothing to do
-	;;
-esac

Attachment: signature.asc
Description: Digital signature


Reply to: