Bug#309623: Incorrect work with 512b fonts on boot

2005-05-19 Thread Anton Zinoviev
On Wed, May 18, 2005 at 04:11:58PM +0400, Olleg Samoylov wrote:
 
 They think they have 256 font (as showed by displayfont).
 Simple workaround - open console before changing font. In patch I place
 sending ESC sequence before setting font, all work fine.

Thanks.  I didn't know what had caused the problem.

Anton Zinoviev




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#309623: Incorrect work with 512b fonts on boot

2005-05-19 Thread Olleg Samoylov
Anton Zinoviev wrote:
Thanks.  I didn't know what had caused the problem.
Sure this is not bug of console-cyrillic. May be kernel? But cyr already 
open virtual consoles sending esc sequence to each. Thus in cyr may be 
placed simple workaround, send esc sequence before loading font.

Other console packages (console-common, console-tools, etc) use 
unicode_start and don't open consoles. Due to this unicode mode is 
absent in tty[2-6] and workaround can't be placed in they.

--
Olleg Samoylov


smime.p7s
Description: S/MIME Cryptographic Signature


Bug#309623: Incorrect work with 512b fonts on boot

2005-05-18 Thread Olleg Samoylov
Package: console-cyrillic
Version: 0.9-8
Severity: normal
Tags: patch

I use 512 unicode font. After boot first console is good, but other don't
worked properly. They think they have 256 font (as showed by displayfont).
Simple workaround - open console before changing font. In patch I place
sending ESC sequence before setting font, all work fine.

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages console-cyrillic depends on:
ii  console-terminus   4.12-1Fixed-width fonts for fast reading
ii  console-tools  1:0.2.3dbs-56 Linux console and font utilities
ii  debconf1.4.30.13 Debian configuration management sy
ii  perl-base  5.8.4-8   The Pathologically Eclectic Rubbis

-- debconf information:
* console-cyrillic/switch: No temporary switch
  console-cyrillic/abusing_debconf:
* console-cyrillic/fontstyle: Terminus Unicode Normal
* console-cyrillic/ttys: /dev/tty[1-6]
  console-cyrillic/change_config: true
* console-cyrillic/fontsize: 14
* console-cyrillic/encoding: UNICODE
* console-cyrillic/bootsetup: true
* console-cyrillic/toggle: Caps Lock
* console-cyrillic/kbdtype: Russian Winkeys
--- /usr/bin/cyr.orig   2005-05-18 15:46:33.180743914 +0400
+++ /usr/bin/cyr2005-05-18 15:50:17.940842519 +0400
@@ -275,6 +275,23 @@
 elsif(/^4$/) {$STYLE = arab;}
 }
 
+if($VTTYS eq ) {
+$VTTYS = `tty`;
+}
+
+for my $console (glob $VTTYS) {
+if (-w $console) {
+   open CONSOLE, $console;
+   print CONSOLE \x{1b}(K;
+   if ($ENCODING eq unicode) {
+   print CONSOLE \x{1b}%G;
+   } else {
+   print CONSOLE \x{1b}%@;
+   }
+   close CONSOLE;
+}
+}
+
 if ($FONTFILE eq ) {
 stylesize($STYLE, $SIZE);
 } else {
@@ -292,29 +309,12 @@
 $verbose);
 }
 
-if($VTTYS eq ) {
-$VTTYS = `tty`;
-}
-
 if ($ENCODING eq unicode) {
 execute (kbd_mode -u);
 } else {
 execute (kbd_mode -a);
 }
 
-for my $console (glob $VTTYS) {
-if (-w $console) {
-   open CONSOLE, $console;
-   print CONSOLE \x{1b}(K;
-   if ($ENCODING eq unicode) {
-   print CONSOLE \x{1b}%G;
-   } else {
-   print CONSOLE \x{1b}%@;
-   }
-   close CONSOLE;
-}
-}
-
 execute (loadkeys ${KEYMAPDIR}/$LAYOUT-$ENCODING.kmap $verbose);
 if ($OPTIONS ne ) {
 execute (loadkeys ${KEYMAPDIR}/option-clear.kmap $verbose);