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

Bug#730430: marked as done (bdf2psf: does not cope with short bitmap rows in BDF)

Your message dated Fri, 08 Aug 2014 12:33:55 +0000
with message-id <E1XFjMp-0002aF-RY@franck.debian.org>
and subject line Bug#730430: fixed in console-setup 1.111
has caused the Debian Bug report #730430,
regarding bdf2psf: does not cope with short bitmap rows in BDF
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

730430: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730430
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: bdf2psf
Version: 1.102
Severity: normal
Tags: patch

In the BITMAP part of a BDF character definition, trailing zero bytes are allowed to be omitted. However, when a font has them missing, bdf2psf ignores the entire glyph. For instance, converting the "100dpi-courB10.bdf" font from the console-setup-1.102 source distribution with this command:

bdf2psf --fb 100dpi-courB10.bdf \
  /usr/share/bdf2psf/standard.equivalents \
  /usr/share/bdf2psf/ascii.set 256 foo.psf

gives a sequence of warnings starting with:

WARNING: U+0020: no glyph defined

Obviously, the font does define a space character -- bdf2psf is just ignoring it. The resulting PSF-format font is almost unusable.

The attached patch solves the problem, but it may be that it also renders unnecessary the test for box-drawing and block element characters on the previous line.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing') Architecture: i386 (i686)
Kernel: Linux 3.10-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages bdf2psf depends on:
ii  perl  5.18.1-4

bdf2psf recommends no packages.

bdf2psf suggests no packages.

-- no debconf information

Ben Harris
--- console-setup-1.102/Fonts/bdf2psf.orig	2011-03-19 02:01:10.000000000 +0000
+++ console-setup-1.102/Fonts/bdf2psf	2013-11-25 00:02:44.000000000 +0000
@@ -463,7 +463,7 @@
 		$row = hex ($1) >> -$shiftbits;
 	    if (($u >= 0x2500 && $u <= 0x259f)
-		|| length($1) == 2 * matrix_row_size ()) {
+		|| length($1) <= 2 * matrix_row_size ()) {
 		for my $i (1 ... matrix_row_size ()) {
 		    push (@glyph_bytes,
 			  ($row >> 8 * (matrix_row_size () - $i)) & 0xff);

--- End Message ---
--- Begin Message ---
Source: console-setup
Source-Version: 1.111

We believe that the bug you reported is fixed in the latest version of
console-setup, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 730430@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Anton Zinoviev <zinoviev@debian.org> (supplier of updated console-setup package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)

Hash: SHA1

Format: 1.8
Date: Fri, 08 Aug 2014 14:21:19 +0300
Source: console-setup
Binary: keyboard-configuration console-setup console-setup-mini console-setup-linux console-setup-freebsd bdf2psf console-setup-udeb console-setup-amiga-ekmap console-setup-ataritt-ekmap console-setup-macintoshold-ekmap console-setup-pc-ekmap console-setup-sun4-ekmap console-setup-sun5-ekmap console-setup-pc-ekbd console-setup-linux-fonts-udeb console-setup-freebsd-fonts-udeb console-setup-linux-charmaps-udeb console-setup-freebsd-charmaps-udeb
Architecture: source all
Version: 1.111
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Anton Zinoviev <zinoviev@debian.org>
 bdf2psf    - font converter to generate console fonts from BDF source fonts
 console-setup - console font and keymap setup program
 console-setup-amiga-ekmap - encoded Linux keyboard layouts for Amiga keyboards (udeb)
 console-setup-ataritt-ekmap - encoded Linux keyboard layouts for Atari TT keyboards (udeb)
 console-setup-freebsd - FreeBSD specific part of console-setup
 console-setup-freebsd-charmaps-udeb - FreeBSD 8-bit charmaps for console-setup-udeb (udeb)
 console-setup-freebsd-fonts-udeb - FreeBSD console fonts for Debian Installer (udeb)
 console-setup-linux - Linux specific part of console-setup
 console-setup-linux-charmaps-udeb - Linux 8-bit charmaps for console-setup-udeb (udeb)
 console-setup-linux-fonts-udeb - Linux console fonts for Debian Installer (udeb)
 console-setup-macintoshold-ekmap - encoded Linux keyboard layouts for old-style Macintosh keyboards (udeb)
 console-setup-mini - console font and keymap setup program - reduced version for Linux
 console-setup-pc-ekbd - encoded FreeBSD keyboard layouts for PC keyboards (udeb)
 console-setup-pc-ekmap - encoded Linux keyboard layouts for PC keyboards (udeb)
 console-setup-sun4-ekmap - encoded Linux keyboard layouts for Sun4 keyboards (udeb)
 console-setup-sun5-ekmap - encoded Linux keyboard layouts for Sun5 keyboards (udeb)
 console-setup-udeb - Configure the keyboard (udeb)
 keyboard-configuration - system-wide keyboard preferences
Closes: 672160 678897 691060 693922 705971 722566 730430 743476
 console-setup (1.111) unstable; urgency=low
   [ Anton Zinoviev ]
   * setupcon --setup-dir:
     - generate commands which do not require gzip in initrd;
     - simplify the code by more general handling of special shell symbols
       in command arguments.
     - do not remove temporary files before the script exits so that the
       code of --setup-dir is able to use a keymap stored in a termporary file;
   * Give prefix cached_ to files created in /etc/console-setup.  Remove
     such files when console-setup or console-setup-mini are removed or
     purged and /bin/setupcon doesn't exist.  Thanks to Andreas Beckmann
     and all contributors to the bug report.  Closes: #672160.  Files
     created by older versions of the package will not be removed.
   * ckbcomp: change the approximation method for non-defined symbols
     during the flattening phase.  This is a dangerous change, let's hope
     I've done it right.  Thanks to Artem Rusanov for the informative bug
     report, closes: #722566.
   * bdf2psf: allow omited trailing zero bytes in the BITMAP part of a BDF
     character definition.  Thanks to Ben Harris for the bug report and the
     patch, closes: #730430.
   * setupcon:
     - improve the output of setupcon --verbose;
     - run printf '\033%%@' and printf '\033%%G' in background.  I suppose
       this closes: #678897, #705971.  Thanks to Matteo Croce,
       John A. Livingston, Alban Browaeys, Stefano Forli,
       John D. Hendrickson, Sara Darnell, Hendrik Bijlsma and
       Daniele Di Domizio;
     - issue warnings about /etc being mounted read-only only if it actually
       needs to write something there.  Thanks to Michael Tokarev,
       closes: #691060;
     - Fix bugs related to setupcon VARIANT.  Thanks to Trent W. Buck,
       closes: #743476.
   * Mark all packages as "Multi-Arch: foreign".  Thanks to Guillem Jover
     and Noel David Torres Taño, closes: #693922.
   * keyboard.5: add https://wiki.archlinux.org/index.php/X_KeyBoard_extension
     as another source for further information.
   * setupcon.1: document the options --save-keyboard and --setup-dir to be
     used by initrd builders.
   * Use which instead of type in the config scripts to avoid lintian warnings.
 21bd738437539ccb57636c99ed7271335a51d01b 2470 console-setup_1.111.dsc
 01156c6bf0f39252a0bcfc25666a9394074a8959 3204250 console-setup_1.111.tar.gz
 254687e36b794fb84a7ee01a4cc2ca5933c91908 616484 keyboard-configuration_1.111_all.deb
 fa24cf05ec9dc9c3f1823597f45bf98906c96339 123674 console-setup_1.111_all.deb
 8b06459314f9bc2bd22397c33429dfd85ec7457a 26468 console-setup-mini_1.111_all.deb
 6eba14a4fd22a85f36f5f9c591af22fc09f91ed0 990736 console-setup-linux_1.111_all.deb
 5af67397da1b89059f3bd8220901df8c6c36a539 163232 console-setup-freebsd_1.111_all.deb
 f96fd2a9a9d3935b28c0440256ef0145cb1badd0 59590 bdf2psf_1.111_all.deb
 d678a515adf4582bc2b3b6d4df782b13eb0f6a69 211220 console-setup-udeb_1.111_all.udeb
 15b4bc0113c97b64da4ff86a8bde86cba8ad0c23 38702 console-setup-amiga-ekmap_1.111_all.udeb
 70dea2ad0b11c6f6c276894773b6343d7ee7afae 38432 console-setup-ataritt-ekmap_1.111_all.udeb
 f96e18e93fae5ad33e44032dcc193995ac7dac8d 38150 console-setup-macintoshold-ekmap_1.111_all.udeb
 799b483c77c57e6202ec84e1cb0481228b544582 41030 console-setup-pc-ekmap_1.111_all.udeb
 e8f2303f90147693420f2bd784dc69e9b7f9cd2c 40360 console-setup-sun4-ekmap_1.111_all.udeb
 9b603c23912c48e7c12fbc622a5e8f01c414c103 40496 console-setup-sun5-ekmap_1.111_all.udeb
 d13569ae90314162c51a593e437f3e1e54598125 28206 console-setup-pc-ekbd_1.111_all.udeb
 c0b4024ce4228bb257f10fd5ef99b530a0e519a9 17958 console-setup-linux-fonts-udeb_1.111_all.udeb
 22872101282818062787b08d0dd7adcb09e5ee8e 11066 console-setup-freebsd-fonts-udeb_1.111_all.udeb
 2176191c8abc8c0a4602ece491210f46a8321272 22682 console-setup-linux-charmaps-udeb_1.111_all.udeb
 ad47f32b743536946cba6fc3485b90c4eb99305a 7028 console-setup-freebsd-charmaps-udeb_1.111_all.udeb
 fb438415ea6eb91850842edb5a098e12506d3964bf298b66979ff57081a8ac42 2470 console-setup_1.111.dsc
 8246733d79962cb5507e9ca22a9643366c13d5dea1fd9af5a7d91d86527826f9 3204250 console-setup_1.111.tar.gz
 0799e967ce68b6191f71635c1ac14ac401938f0e9a22f4b4649090a22f55d40d 616484 keyboard-configuration_1.111_all.deb
 76c063cb915b0e43645bb148a0af10f1c1ff93e70f3cfaf9798d0568092ba057 123674 console-setup_1.111_all.deb
 ea7f0afdd7c376b22a327f406da2e6ce806302dce4dda6888c484624444d8919 26468 console-setup-mini_1.111_all.deb
 3f72b4efdb607620f7b50c60e3bc5090058d27d0321d7599002fd5ae9cecea08 990736 console-setup-linux_1.111_all.deb
 da6b8f47d6704558227a0a278800d93c535cc79fbf29814727277abd5fd4fb0d 163232 console-setup-freebsd_1.111_all.deb
 c707dade5476cc3a9dee7559bb96700a89210e129d1de4a2201deb494059e504 59590 bdf2psf_1.111_all.deb
 46c95368a604c464fa26f4ec62b6527fb332dc13eab261687dc0b8c815e164c4 211220 console-setup-udeb_1.111_all.udeb
 adfec97a31360f2b909de6250bd9d07525865bbec98de7666cd558435a4e60ff 38702 console-setup-amiga-ekmap_1.111_all.udeb
 c0c4bdda8ba556600c196343bcfa37cd5ee97a37508f87963a157f9390240465 38432 console-setup-ataritt-ekmap_1.111_all.udeb
 6ae2c0a78de62edd0c6a5020dfd069f2a1ce4c961c574e5e9166d9b98735a713 38150 console-setup-macintoshold-ekmap_1.111_all.udeb
 60b3bf07919f1f50a1585415a839eb46e4a7ef7a170d9b827fa3506dec32688a 41030 console-setup-pc-ekmap_1.111_all.udeb
 11ea71d2a679ea00803cb4eb060f008783ee9fd7f3406096f00ef1baf49db8e0 40360 console-setup-sun4-ekmap_1.111_all.udeb
 0ea1ca54adbdd6dd10399740f3cbb465ef45c141da27b273bf581ec10b397064 40496 console-setup-sun5-ekmap_1.111_all.udeb
 9fcb5417375ab08cdec426bf0ff1ce4237cf623d5142a105c8d2888d54761557 28206 console-setup-pc-ekbd_1.111_all.udeb
 95c4b35fd5171a438de17cf556ca10dec655d0f35d316f7a5e984e5eb977d682 17958 console-setup-linux-fonts-udeb_1.111_all.udeb
 e223c020ecf24f9c852a0c8e4aed49156f3fead13374ae985d980f953213f406 11066 console-setup-freebsd-fonts-udeb_1.111_all.udeb
 a2e8c7a5a905cccd0aa145005219c96e966871dcb592b2ded221799fa75990c9 22682 console-setup-linux-charmaps-udeb_1.111_all.udeb
 14a1d1ef1bc2425fd334a48101f5be4aef6a5967c09e97d9278209660bfec8b2 7028 console-setup-freebsd-charmaps-udeb_1.111_all.udeb
 29ac2b53934fdf11893577b81f66db8f 2470 utils optional console-setup_1.111.dsc
 c2737d9b3abe79699a5739d2964e6d4d 3204250 utils optional console-setup_1.111.tar.gz
 267711da89905e14a93a6e971fadc243 616484 utils optional keyboard-configuration_1.111_all.deb
 f195a827f0a0bdc1fb2f0fd5abf11c6e 123674 utils optional console-setup_1.111_all.deb
 181c44e9984e91143561a002f74cbfff 26468 utils extra console-setup-mini_1.111_all.deb
 54e8dd81e2fb1f4eb113f5cb5783c821 990736 utils optional console-setup-linux_1.111_all.deb
 870c0c4cf5422726dd568fe561b41fdb 163232 utils optional console-setup-freebsd_1.111_all.deb
 3a0a04e64c45aaf79ad32aa736aadaff 59590 utils optional bdf2psf_1.111_all.deb
 dec5b235f8d9c20c3b5347e9f59c5af0 211220 debian-installer extra console-setup-udeb_1.111_all.udeb
 ade2d13906017a46fb4689f7a3c0bbbb 38702 debian-installer extra console-setup-amiga-ekmap_1.111_all.udeb
 5436828f26f095c9e9722221d4f27ec3 38432 debian-installer extra console-setup-ataritt-ekmap_1.111_all.udeb
 d83bc13363a296363ae9274745b9576a 38150 debian-installer extra console-setup-macintoshold-ekmap_1.111_all.udeb
 b4afbde9d816f732cee1ab38907eeda0 41030 debian-installer extra console-setup-pc-ekmap_1.111_all.udeb
 f2693d1bb9986dab13bd39e3313ba104 40360 debian-installer extra console-setup-sun4-ekmap_1.111_all.udeb
 9076246432e430958e52831818acecf7 40496 debian-installer extra console-setup-sun5-ekmap_1.111_all.udeb
 70568b0099a727a5eab6a73ddb669cc0 28206 debian-installer extra console-setup-pc-ekbd_1.111_all.udeb
 6a94a81d19166ca31bbe5c7667a42cb8 17958 debian-installer extra console-setup-linux-fonts-udeb_1.111_all.udeb
 2f7158c60bca28b17d22e3953bfe8978 11066 debian-installer extra console-setup-freebsd-fonts-udeb_1.111_all.udeb
 4d9473c06a729cd06041f55228333a57 22682 debian-installer extra console-setup-linux-charmaps-udeb_1.111_all.udeb
 3078a9fb0746f4e294cb8432bc4ff0cd 7028 debian-installer extra console-setup-freebsd-charmaps-udeb_1.111_all.udeb

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: