From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:jabber-id:user-agent; bh=MaFfEcU6q0j3UdagMK/GXFyKzAdTqtPyrfMeHEhA16U=; b=wYdzY37c9s1ZbAb2xgMQEOmwgl86W0Uy6Z47JiaZPWdljn+4bFNpLpckfs54autPEk 0brptiSSWzoLVVVQhdzV38N2qAPwrnPvFk3lf/5P7krvkLATWCzVFpMSLBu9xyHtvv4i d1WKOVdHYYwLSk1EyinTi6kWZ5spFt5A6F7yE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to:jabber-id :user-agent; b=suepjbC3v6iBDFbXQpdrXdfJVn62natQl4mWFox6gOxyArKmOvLXJRmIycp3okR57M PjRHKpaJMK9QXLWqwcZ0zOTQJbQ/CnJVX6BG7y3YBmyNMv0bT2eTqpnMfybCP43vzv5m Au40kIrdeFOyharXUYTiqcr2MYTtvhefoJ2JQ= Date: Sun, 1 Jun 2008 09:55:53 +0200 From: Michael Schutte To: kbd@lists.altlinux.org Message-ID: <20080601075553.GA3876@debian.homenet> Mail-Followup-To: kbd@lists.altlinux.org References: <20080531073115.GB3877@debian.homenet> <4841E52D.5090807@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <4841E52D.5090807@gmail.com> Jabber-ID: schm@yne.at User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: [kbd] unicode_start should not call setfont X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2008 07:56:02 -0000 Archived-At: List-Archive: --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 01, 2008 at 03:54:21AM +0400, Alexey Gladkov wrote: > We could do another thing: > > diff --git a/src/unicode_start b/src/unicode_start > index 82ef457..63c9967 100755 > --- a/src/unicode_start > +++ b/src/unicode_start > @@ -83,7 +83,6 @@ case "$#" in > setfont "$1" > ;; > 0) > - setfont "$DEFAULT_UNICODE_FONT" > ;; > *) > echo "usage: unicode_start [font [unicode map]]" > --- > > Most distributions load own fonts after executing unicode_start. I think = we=20 > can remove the setting of default font. > > Without any arguments unicode_start will only set unicode mode and will n= ot=20 > set font. > > How about that? This is exactly what I had in mind, I just failed to express myself :-) Just an addition to your patch, before it gets forgotten: diff --git a/man/man1/unicode_start.1 b/man/man1/unicode_start.1 index 7c2b939..b76ccb3 100644 --- a/man/man1/unicode_start.1 +++ b/man/man1/unicode_start.1 @@ -26,7 +26,7 @@ The parameter .I font is a font that is loaded. It should have a built-in Unicode map, or, if it hasn't, such a map can be given explicitly as second parameter. -When no font was specified, some default font is loaded. +When no font was specified, the current font is kept. .SH NOTE Unicode mode is a parameter with a value per virtual console. However, usually the font and keymap is common to all consoles. diff --git a/src/unicode_start b/src/unicode_start index cfa19f8..7351fe0 100755 --- a/src/unicode_start +++ b/src/unicode_start @@ -85,18 +85,6 @@ stty iutf8 # have a Unicode map attached, or explicitly specified, e.g., # by giving `def.uni' as a second argument. =20 -# Also drdos8x16 is a good candidate. -for DEFAULT_UNICODE_FONT in \ - /usr/share/consolefonts/Uni1-VGA16.psf* \ - /usr/share/consolefonts/LatArCyrHeb-16.psf* \ - /usr/share/consolefonts/default*.psf* \ - /usr/share/consolefonts/*.psf* -do - if [ -f "$DEFAULT_UNICODE_FONT" ]; then - break - fi -done - case "$#" in 2) setfont "$1" -u "$2" --- I=E2=80=99ll apply this for the next Debian revision of kbd. Regards, --=20 Michael Schutte --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSEJWCfPkEi8djCYaAQIaZQf+J4w1GtGBDqCxcZl66lyhihly8Gkdz00g txO+Zc/+Pt2to8Te8oS4wJtCZGlOLrCLuLYr76Ci5bs2kUQcyuGuvustOlYTVe6G AVbXOs1RGCniyj4dAvOYZMPOaoIcvZhXG5k6XZxaNAdrpiiv5ZMZhTOTaBarJqjF woRtScxV06/rEy59afWrvVsYvYSfLS2c2IPGBCd50rqO71CdNrh6UvJGnp4TEXLw ew4sfbcopsqgxtzy5J4eQTIrW+Mf24KviUmmUB9nw68ZQKjDBe4RTB8ZYMloeWrR KzNQxuXJg2LnAS8tRfiXUr3NA7l3O3txuTYiQGq/fiFxeIgvMNKICA== =qjnw -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--