Re: Is termwrap working as expected?
- To: debian-boot@lists.debian.org
- Subject: Re: Is termwrap working as expected?
- From: Petter Reinholdtsen <pere@hungry.com>
- Date: 01 Mar 2002 14:47:02 +0100
- Message-id: <[🔎] 2flbse8xuw9.fsf@saruman.uio.no>
- In-reply-to: <[🔎] 1014972492.17325.53.camel@kc>
- References: <2flk7tfdoci.fsf@saruman.uio.no> <1013769912.10970.97.camel@mill>	<2flbsegbeh3.fsf@saruman.uio.no>	<20020224022523.0cf707de.dancer@netfort.gr.jp>	<2fl8z9j20hh.fsf@saruman.uio.no>	<20020224105805.34764137.dancer@netfort.gr.jp>	<2fllmdj5h1t.fsf@saruman.uio.no>	<20020224200009.74524385.dancer@netfort.gr.jp>	<20020224211542.GB9775@kitenet.net>	<20020225092026.70cf9795.dancer@netfort.gr.jp>	<20020225025121.GB2368@kitenet.net>	<2flofi9xuuv.fsf_-_@saruman.uio.no> <1014938163.17325.37.camel@kc>	<2fladttdv63.fsf@saruman.uio.no> <[🔎] 1014972492.17325.53.camel@kc>
[Philip Blundell]
> Or perhaps it should be in a separate program that is invoked before
> termwrap during the initial boot.  (I.e. put it in
> boot-floppies/scripts/rootdisk somewhere and add it to
> inittab.install.)
The problem is that base-config must know if LANG uses a valid locale,
and if the current terminal can use it.  If any of this is false, it
must unset LANG (and LANGUAGE) to avoid printing garbage during
install.  So base-config needs to
 - Try to generate the locale listed in LANG, unset it if it is not
   valid. (before running 'locale charset')
 - Check if the LANG locale uses a supported charset, and choose the
   proper terminal based on this information. (in termwrap)
 - Check if the locale in LANG is valid, and if the current terminal
   can handle the charset, and unset LANG if it isn't (base-config)
Of course, these parts use almost the same algorithm, but it must be
done in sequence.
Reply to: