Bug 5045 - Font loading should be returned back to /etc/profile.d/lang.sh
: Font loading should be returned back to /etc/profile.d/lang.sh
Status: CLOSED NOTABUG
: Sisyphus
(All bugs in Sisyphus/setup)
: unstable
: all Linux
: P2 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2004-08-21 23:46 by
Modified: 2009-05-10 09:32 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-08-21 23:46:22
--- /etc/profile.d/lang.sh.orig	2004-01-29 17:53:46 +0300
+++ /etc/profile.d/lang.sh	2002-10-15 15:42:50 +0400
@@ -43,6 +43,16 @@
 	[ -n "$XMODIFIERS" ] && export XMODIFIERS || Unset XMODIFIERS
 	[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || Unset _XKB_CHARSET
 
+	if [ -n "$SYSFONTACM" ]; then
+		case $SYSFONTACM in
+			iso01*|iso02*|iso08*|iso15*|koi*|latin2-ucw*|cp1251*|pt154*)
+				if [ "$TERM" = linux -a "`/sbin/consoletype`" = vt ]; then
+					echo -ne '\033(K' >&0
+				fi
+				;;
+		esac
+	fi
+
 	Unset SYSFONTACM SYSFONT
 
 	# handling of special cases where localization is done

Steps to Reproduce:
1. Install setup-2.2.5-alt1
2. Check that your ~/.i18n file contains LANG=ru_RU.KOI-R; LANGUAGE=$LANG
3. Login to text console (Alt+Ctrl+F1..F6)
4. Run MC or any other localized application
Actual Results:  
Pseudographics is displayed instead of russian characters.
Workaround: replace /etc/profile.d/lang.sh installed by setup-2.2.5-alt1 to old 
version taken from initscripts-5.49-ipl50mdk (part of M22).

Expected Results:  
Russian characters in text console on expected positions!
------- Comment #1 From 2004-11-15 15:58:51 -------
This code was moved to new script, /etc/profile.d/console.sh
Update to console-tools >= 0.2.3-ipl20mdk.