Bug 5045 - Font loading should be returned back to /etc/profile.d/lang.sh
Summary: Font loading should be returned back to /etc/profile.d/lang.sh
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: setup (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-21 23:46 MSD by evseev
Modified: 2009-05-10 09:32 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description evseev 2004-08-21 23:46:22 MSD
--- /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 Dmitry V. Levin 2004-11-15 15:58:51 MSK
This code was moved to new script, /etc/profile.d/console.sh
Update to console-tools >= 0.2.3-ipl20mdk.