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

Re: 20040708 i386 sid_d-i netinst 2.4 OK (sv_SE) and NOT OK (ru_RU)



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/^[^.@]*//'`

But DEFAULTLOCALE is usually ll or ll_CC.
It should be:
EXTRA_LANGUAGECHOOSER=`echo $FALLBACKLOCALE | sed -e 's/^[^.@]*//'`

-- 
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/^[^.@]*//'`
+EXTRA_LANGUAGECHOOSER=`echo $FALLBACKLOCALE | sed -e 's/^[^.@]*//'`
 
 FIRST_LANG=$(echo $LANGUAGELIST | sed -e 's/:.*$//')
 

Reply to: