Eugeniy Meshcheryakov ÐÐÐÐÑÐÐ: > Christian Perrier ÐÐÐÐÑÐÐ: > >>Environment: VmWare >>Platform : i386 >>Kernel : 2.4 >>Locale : sv_SE >>Image : netinst sid_d-i 20040707 >>Priority : high >> >>Result : No special problem >> a ru_RU install however fails on horrible display in 2nd stage >> >>Eugeniy, Recai, can you have a look and try to understand why Russian >>has a so bad display on 2nd stage? > > ru_RU locale created and used in second stage (encoding is ISO-8859-5). > But console is set up to use KOI8-R encoding (or ISO-8859-1 by > termwrap?). languagelist contains proper value for Russian locale > (ru_RU.KOI8-R) but encoding part is lost somewhere. > This is a bug in countrychooser. It determines part of locale after . or @ by using following code:
EXTRA_LANGUAGECHOOSER=`echo $DEFAULTLOCALE | sed -e 's/[EMAIL PROTECTED]//'` But DEFAULTLOCALE is usually ll or ll_CC. It should be: EXTRA_LANGUAGECHOOSER=`echo $FALLBACKLOCALE | sed -e 's/[EMAIL PROTECTED]//'` -- Eugeniy Meshcheryakov Kyiv National Taras Shevchenko University Information and Computing Centre http://icc.univ.kiev.ua
Index: debian/postinst =================================================================== --- debian/postinst (revision 17695) +++ debian/postinst (working copy) @@ -124,7 +124,7 @@ DEFAULTLOCALE="C" fi # If present, keep track of charset or modifier we got from languagechooser -EXTRA_LANGUAGECHOOSER=`echo $DEFAULTLOCALE | sed -e 's/[EMAIL PROTECTED]//'` +EXTRA_LANGUAGECHOOSER=`echo $FALLBACKLOCALE | sed -e 's/[EMAIL PROTECTED]//'` FIRST_LANG=$(echo $LANGUAGELIST | sed -e 's/:.*$//')