Report forwarded to debian-bugs-dist@lists.debian.org, Yann Dirson <dirson@debian.org>:
Bug#81333; Package console-tools.   debian-bugs-dist@lists.debian.orgYann Dirson  Subject: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Reply-To: Tuomas Heino , 81333@bugs.debian.org Resent-From: Tuomas Heino Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Yann Dirson Resent-Date: Fri, 05 Jan 2001 20:48:02 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 81333 X-Debian-PR-Package: console-tools X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by bugs@bugs.debian.org id=B.97872699310111 (code B ref -1); Fri, 05 Jan 2001 20:48:02 GMT From: Tuomas Heino To: submit@bugs.debian.org X-Mailer: bug 3.2.2 Message-Id: Date: Fri, 05 Jan 2001 22:36:29 +0200 Delivered-To: submit@bugs.debian.org Package: console-tools Version: 1:0.2.3-14 Severity: wishlist ... as it tries to use several files that could be something else than fonts, like default.gz Looking for fonts in the current directory is ok when the filename is actually specified on the command line by the user; looking for >20 files first in the current directory and then in a bunch of others when the user does "consolechars -d" (or a program does that on users' behalf - cmatrix does that) is kinda bad. Instead it should be kludged to use the default font in /etc/console-tools/config (then that config file could have a fixed path to prevent things from getting "mixed up";) -- System Information Debian Release: woody Kernel Version: Linux bx3 2.4.0-prerelease #286 Mon Jan 1 22:56:26 EET 2001 i686 unknown Versions of the packages console-tools depends on: ii console-data 1999.08.29-12.1 Keymaps, fonts, charset maps, fallback tables for console-tools ii console-tools-libs 0.2.3-14 Shared libraries for Linux console and font manipulation. ii libc6 2.2-6 GNU C Library: Shared libraries and Timezone data ii sysvinit 2.78-4 System-V like init. --- Begin /etc/console-tools/config (modified conffile) SCREEN_FONT=lat1u-16 --- End /etc/console-tools/config   Acknowledgement sent to Tuomas Heino <iheino@cc.hut.fi>:
New Bug report received and forwarded. Copy sent to Yann Dirson <dirson@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Tuomas Heino Subject: Bug#81333: Acknowledgement (console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack 81333 Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers mailing list for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Yann Dirson If you wish to submit further information on your problem, please send it to 81333@bugs.debian.org (and *not* to bugs@bugs.debian.org). Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at submit) by bugs.debian.org; 5 Jan 2001 20:36:33 +0000 From iheino@cc.hut.fi Fri Jan 05 14:36:33 2001 Return-path: Received: from smtp-2.hut.fi [130.233.228.92] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14EdbE-0002d1-00; Fri, 05 Jan 2001 14:36:33 -0600 Received: from bx3.bx.fi (i@cc-dialin1-27.hut.fi [130.233.251.27]) by smtp-2.hut.fi (8.9.3/8.9.3) with ESMTP id WAA64609; Fri, 5 Jan 2001 22:36:30 +0200 (EET) Received: from iheino by bx3.bx.fi with local (Exim 3.12 #1 (Debian)) id 14EdbB-0005mx-00; Fri, 05 Jan 2001 22:36:29 +0200 From: Tuomas Heino Subject: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do To: submit@bugs.debian.org X-Mailer: bug 3.2.2 Message-Id: Date: Fri, 05 Jan 2001 22:36:29 +0200 Delivered-To: submit@bugs.debian.org Package: console-tools Version: 1:0.2.3-14 Severity: wishlist ... as it tries to use several files that could be something else than fonts, like default.gz Looking for fonts in the current directory is ok when the filename is actually specified on the command line by the user; looking for >20 files first in the current directory and then in a bunch of others when the user does "consolechars -d" (or a program does that on users' behalf - cmatrix does that) is kinda bad. Instead it should be kludged to use the default font in /etc/console-tools/config (then that config file could have a fixed path to prevent things from getting "mixed up";) -- System Information Debian Release: woody Kernel Version: Linux bx3 2.4.0-prerelease #286 Mon Jan 1 22:56:26 EET 2001 i686 unknown Versions of the packages console-tools depends on: ii console-data 1999.08.29-12.1 Keymaps, fonts, charset maps, fallback tables for console-tools ii console-tools-libs 0.2.3-14 Shared libraries for Linux console and font manipulation. ii libc6 2.2-6 GNU C Library: Shared libraries and Timezone data ii sysvinit 2.78-4 System-V like init. --- Begin /etc/console-tools/config (modified conffile) SCREEN_FONT=lat1u-16 --- End /etc/console-tools/config   Reply sent to Yann Dirson <ydirson@altern.org>:
You have taken responsibility.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Yann Dirson Cc: Yann Dirson Bcc: debian-bugs-closed@lists.debian.org Subject: Bug#81333: marked as done (console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: <20010105234708.A23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> X-Debian-PR-Message: closed 81333 Your message dated Fri, 5 Jan 2001 23:47:08 +0100 with message-id <20010105234708.A23371@bylbo.nowhere.earth> and subject line Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do has caused the attached Bug report 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 I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Darren Benham (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 5 Jan 2001 20:36:33 +0000 From iheino@cc.hut.fi Fri Jan 05 14:36:33 2001 Return-path: Received: from smtp-2.hut.fi [130.233.228.92] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14EdbE-0002d1-00; Fri, 05 Jan 2001 14:36:33 -0600 Received: from bx3.bx.fi (i@cc-dialin1-27.hut.fi [130.233.251.27]) by smtp-2.hut.fi (8.9.3/8.9.3) with ESMTP id WAA64609; Fri, 5 Jan 2001 22:36:30 +0200 (EET) Received: from iheino by bx3.bx.fi with local (Exim 3.12 #1 (Debian)) id 14EdbB-0005mx-00; Fri, 05 Jan 2001 22:36:29 +0200 From: Tuomas Heino Subject: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do To: submit@bugs.debian.org X-Mailer: bug 3.2.2 Message-Id: Date: Fri, 05 Jan 2001 22:36:29 +0200 Delivered-To: submit@bugs.debian.org Package: console-tools Version: 1:0.2.3-14 Severity: wishlist ... as it tries to use several files that could be something else than fonts, like default.gz Looking for fonts in the current directory is ok when the filename is actually specified on the command line by the user; looking for >20 files first in the current directory and then in a bunch of others when the user does "consolechars -d" (or a program does that on users' behalf - cmatrix does that) is kinda bad. Instead it should be kludged to use the default font in /etc/console-tools/config (then that config file could have a fixed path to prevent things from getting "mixed up";) -- System Information Debian Release: woody Kernel Version: Linux bx3 2.4.0-prerelease #286 Mon Jan 1 22:56:26 EET 2001 i686 unknown Versions of the packages console-tools depends on: ii console-data 1999.08.29-12.1 Keymaps, fonts, charset maps, fallback tables for console-tools ii console-tools-libs 0.2.3-14 Shared libraries for Linux console and font manipulation. ii libc6 2.2-6 GNU C Library: Shared libraries and Timezone data ii sysvinit 2.78-4 System-V like init. --- Begin /etc/console-tools/config (modified conffile) SCREEN_FONT=lat1u-16 --- End /etc/console-tools/config --------------------------------------- Received: (at 81333-done) by bugs.debian.org; 5 Jan 2001 22:37:36 +0000 From ydirson@altern.org Fri Jan 05 16:37:36 2001 Return-path: Received: from (mahonia.wanadoo.fr) [193.252.19.58] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14EfUN-00030q-00; Fri, 05 Jan 2001 16:37:36 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by mahonia.wanadoo.fr; 5 Jan 2001 23:37:27 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14Efdd-0006DI-00; Fri, 05 Jan 2001 23:47:09 +0100 Date: Fri, 5 Jan 2001 23:47:08 +0100 To: Tuomas Heino , 81333-done@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010105234708.A23371@bylbo.nowhere.earth> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Fri, Jan 05, 2001 at 10:36:29PM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333-done@bugs.debian.org On Fri, Jan 05, 2001 at 10:36:29PM +0200, Tuomas Heino wrote: > ... as it tries to use several files that could be something else than > fonts, like default.gz > > Looking for fonts in the current directory is ok when the filename is > actually specified on the command line by the user; looking for > >20 files first in the current directory and then in a bunch of others > when the user does "consolechars -d" Did you really check what kbd does ? if (!*ifil) { /* try to find some default file */ if (iunit < 0 || iunit > 32) iunit = 0; if (iunit == 0) { if ((fpi = findfont(ifil = "default")) == NULL && (fpi = findfont(ifil = "default8x16")) == NULL && (fpi = findfont(ifil = "default8x14")) == NULL && (fpi = findfont(ifil = "default8x8")) == NULL) { fprintf(stderr, _("Cannot find default font\n")); exit(1); } } else { sprintf(defname, "default8x%d", iunit); if ((fpi = findfont(ifil = defname)) == NULL && (fpi = findfont(ifil = "default")) == NULL) { fprintf(stderr, _("Cannot find %s font\n"), ifil); exit(1); } } Which makes it look into: char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", 0 }; While console-tools does: if (requested_height == 0) { if ((fpi = findfont("default", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x16", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x14", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x08", pathname, sizeof(pathname), NULL, &font_magic)) == NULL) { fprintf(stderr, _("Cannot find a default font file.\n")); exit(1); } } else { sprintf(defname, "default8x%02d", requested_height); if ((fpi = findfont(defname, pathname, sizeof(pathname), NULL, &font_magic)) == NULL) { fprintf(stderr, _("Cannot find default font file `default8x%02d'.\n"), requested_height); exit(1); } } With: static const char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", #ifdef LOCALDATADIR LOCALDATADIR "/" FONTDIR "/", #endif 0 }; ... which you won't find to be *so* different > Instead it should be kludged to use the default font in > /etc/console-tools/config (then that config file could have a fixed > path to prevent things from getting "mixed up";) No. That is maybe an insufficient documentation, but "default font" refers to "something like" the default font at kernel bootup time. Except that the kernel does not provide any means to restore it, so we look for files that should contain a font sufficiently close to this. And yes, it is *really* badly done for non-i386 archs, but this is a known problem. Anyway /etc/console-tools is Debian-specific. To do what you need, please call: /etc/init.d/console-screen.sh Regards, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Notification sent to Tuomas Heino <iheino@cc.hut.fi>:
Bug acknowledged by developer.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Tuomas Heino Subject: Bug#81333 acknowledged by developer (Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: References: <20010105234708.A23371@bylbo.nowhere.earth> X-Debian-PR-Message: they-closed 81333 This is an automatic notification regarding your Bug report #81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do, which was filed against the console-tools package. It has been closed by one of the developers, namely Yann Dirson . Their explanation is attached below. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact the developer directly, or email 81333@bugs.debian.org or me. Darren Benham (administrator, Debian Bugs database) Received: (at 81333-done) by bugs.debian.org; 5 Jan 2001 22:37:36 +0000 From ydirson@altern.org Fri Jan 05 16:37:36 2001 Return-path: Received: from (mahonia.wanadoo.fr) [193.252.19.58] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14EfUN-00030q-00; Fri, 05 Jan 2001 16:37:36 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by mahonia.wanadoo.fr; 5 Jan 2001 23:37:27 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14Efdd-0006DI-00; Fri, 05 Jan 2001 23:47:09 +0100 Date: Fri, 5 Jan 2001 23:47:08 +0100 To: Tuomas Heino , 81333-done@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010105234708.A23371@bylbo.nowhere.earth> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Fri, Jan 05, 2001 at 10:36:29PM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333-done@bugs.debian.org On Fri, Jan 05, 2001 at 10:36:29PM +0200, Tuomas Heino wrote: > ... as it tries to use several files that could be something else than > fonts, like default.gz > > Looking for fonts in the current directory is ok when the filename is > actually specified on the command line by the user; looking for > >20 files first in the current directory and then in a bunch of others > when the user does "consolechars -d" Did you really check what kbd does ? if (!*ifil) { /* try to find some default file */ if (iunit < 0 || iunit > 32) iunit = 0; if (iunit == 0) { if ((fpi = findfont(ifil = "default")) == NULL && (fpi = findfont(ifil = "default8x16")) == NULL && (fpi = findfont(ifil = "default8x14")) == NULL && (fpi = findfont(ifil = "default8x8")) == NULL) { fprintf(stderr, _("Cannot find default font\n")); exit(1); } } else { sprintf(defname, "default8x%d", iunit); if ((fpi = findfont(ifil = defname)) == NULL && (fpi = findfont(ifil = "default")) == NULL) { fprintf(stderr, _("Cannot find %s font\n"), ifil); exit(1); } } Which makes it look into: char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", 0 }; While console-tools does: if (requested_height == 0) { if ((fpi = findfont("default", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x16", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x14", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x08", pathname, sizeof(pathname), NULL, &font_magic)) == NULL) { fprintf(stderr, _("Cannot find a default font file.\n")); exit(1); } } else { sprintf(defname, "default8x%02d", requested_height); if ((fpi = findfont(defname, pathname, sizeof(pathname), NULL, &font_magic)) == NULL) { fprintf(stderr, _("Cannot find default font file `default8x%02d'.\n"), requested_height); exit(1); } } With: static const char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", #ifdef LOCALDATADIR LOCALDATADIR "/" FONTDIR "/", #endif 0 }; ... which you won't find to be *so* different > Instead it should be kludged to use the default font in > /etc/console-tools/config (then that config file could have a fixed > path to prevent things from getting "mixed up";) No. That is maybe an insufficient documentation, but "default font" refers to "something like" the default font at kernel bootup time. Except that the kernel does not provide any means to restore it, so we look for files that should contain a font sufficiently close to this. And yes, it is *really* badly done for non-i386 archs, but this is a known problem. Anyway /etc/console-tools is Debian-specific. To do what you need, please call: /etc/init.d/console-screen.sh Regards, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Received: (at 81333-done) by bugs.debian.org; 5 Jan 2001 22:37:36 +0000 From ydirson@altern.org Fri Jan 05 16:37:36 2001 Return-path: Received: from (mahonia.wanadoo.fr) [193.252.19.58] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14EfUN-00030q-00; Fri, 05 Jan 2001 16:37:36 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by mahonia.wanadoo.fr; 5 Jan 2001 23:37:27 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14Efdd-0006DI-00; Fri, 05 Jan 2001 23:47:09 +0100 Date: Fri, 5 Jan 2001 23:47:08 +0100 To: Tuomas Heino , 81333-done@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010105234708.A23371@bylbo.nowhere.earth> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Fri, Jan 05, 2001 at 10:36:29PM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333-done@bugs.debian.org On Fri, Jan 05, 2001 at 10:36:29PM +0200, Tuomas Heino wrote: > ... as it tries to use several files that could be something else than > fonts, like default.gz > > Looking for fonts in the current directory is ok when the filename is > actually specified on the command line by the user; looking for > >20 files first in the current directory and then in a bunch of others > when the user does "consolechars -d" Did you really check what kbd does ? if (!*ifil) { /* try to find some default file */ if (iunit < 0 || iunit > 32) iunit = 0; if (iunit == 0) { if ((fpi = findfont(ifil = "default")) == NULL && (fpi = findfont(ifil = "default8x16")) == NULL && (fpi = findfont(ifil = "default8x14")) == NULL && (fpi = findfont(ifil = "default8x8")) == NULL) { fprintf(stderr, _("Cannot find default font\n")); exit(1); } } else { sprintf(defname, "default8x%d", iunit); if ((fpi = findfont(ifil = defname)) == NULL && (fpi = findfont(ifil = "default")) == NULL) { fprintf(stderr, _("Cannot find %s font\n"), ifil); exit(1); } } Which makes it look into: char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", 0 }; While console-tools does: if (requested_height == 0) { if ((fpi = findfont("default", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x16", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x14", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && (fpi = findfont("default8x08", pathname, sizeof(pathname), NULL, &font_magic)) == NULL) { fprintf(stderr, _("Cannot find a default font file.\n")); exit(1); } } else { sprintf(defname, "default8x%02d", requested_height); if ((fpi = findfont(defname, pathname, sizeof(pathname), NULL, &font_magic)) == NULL) { fprintf(stderr, _("Cannot find default font file `default8x%02d'.\n"), requested_height); exit(1); } } With: static const char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", #ifdef LOCALDATADIR LOCALDATADIR "/" FONTDIR "/", #endif 0 }; ... which you won't find to be *so* different > Instead it should be kludged to use the default font in > /etc/console-tools/config (then that config file could have a fixed > path to prevent things from getting "mixed up";) No. That is maybe an insufficient documentation, but "default font" refers to "something like" the default font at kernel bootup time. Except that the kernel does not provide any means to restore it, so we look for files that should contain a font sufficiently close to this. And yes, it is *really* badly done for non-i386 archs, but this is a known problem. Anyway /etc/console-tools is Debian-specific. To do what you need, please call: /etc/init.d/console-screen.sh Regards, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Information forwarded to debian-bugs-dist@lists.debian.org, Yann Dirson <dirson@debian.org>:
Bug#81333; Package console-tools.   debian-bugs-dist@lists.debian.orgYann Dirson  Subject: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Reply-To: Tuomas Heino , 81333@bugs.debian.org Resent-From: Tuomas Heino Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Yann Dirson Resent-Date: Sat, 06 Jan 2001 08:48:11 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 81333 X-Debian-PR-Package: console-tools X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 81333-bugs@bugs.debian.org id=B81333.9787701134384 (code B ref 81333); Sat, 06 Jan 2001 08:48:11 GMT Date: Sat, 6 Jan 2001 10:35:05 +0200 (EET) From: Tuomas Heino X-Sender: iheino@smaragdi.hut.fi To: Yann Dirson cc: 81333@bugs.debian.org In-Reply-To: <20010105234708.A23371@bylbo.nowhere.earth> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Delivered-To: 81333@bugs.debian.org On Fri, 5 Jan 2001, Yann Dirson wrote: > On Fri, Jan 05, 2001 at 10:36:29PM +0200, Tuomas Heino wrote: > > ... as it tries to use several files that could be something else than > > fonts, like default.gz > > > > Looking for fonts in the current directory is ok when the filename is > > actually specified on the command line by the user; looking for > > >20 files first in the current directory and then in a bunch of others > > when the user does "consolechars -d" > > Did you really check what kbd does ? kbd's config scripts copy (at least used to back in '97) the user's default font to default.gz - therefore the user gets the "proper" default font whenever he calls setfont/consolechars to reset the font to the default (or a program calls it on his behalf). > No. That is maybe an insufficient documentation, but "default font" > refers to "something like" the default font at kernel bootup time. > Except that the kernel does not provide any means to restore it, so we > look for files that should contain a font sufficiently close to this. > > And yes, it is *really* badly done for non-i386 archs, but this is a > known problem. > > Anyway /etc/console-tools is Debian-specific. To do what you need, please call: > > /etc/init.d/console-screen.sh Hmm maybe reassign this bug to _all_ the packages that call consolechars/setfont then? ;)   Acknowledgement sent to Tuomas Heino <iheino@cc.hut.fi>:
Extra info received and forwarded to list. Copy sent to Yann Dirson <dirson@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Tuomas Heino Subject: Bug#81333: Info received (was Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack-info-maintonly 81333 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Yann Dirson If you wish to continue to submit further information on your problem, please send it to 81333@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at 81333) by bugs.debian.org; 6 Jan 2001 08:35:13 +0000 From iheino@cc.hut.fi Sat Jan 06 02:35:13 2001 Return-path: Received: from tiku.hut.fi [130.233.228.86] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14Eooi-00018P-00; Sat, 06 Jan 2001 02:35:12 -0600 Received: from smaragdi.hut.fi (iheino@smaragdi.hut.fi [130.233.249.81]) by tiku.hut.fi (8.9.3/8.9.3) with ESMTP id KAA16415; Sat, 6 Jan 2001 10:35:06 +0200 (EET) Date: Sat, 6 Jan 2001 10:35:05 +0200 (EET) From: Tuomas Heino X-Sender: iheino@smaragdi.hut.fi To: Yann Dirson cc: 81333@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do In-Reply-To: <20010105234708.A23371@bylbo.nowhere.earth> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Delivered-To: 81333@bugs.debian.org On Fri, 5 Jan 2001, Yann Dirson wrote: > On Fri, Jan 05, 2001 at 10:36:29PM +0200, Tuomas Heino wrote: > > ... as it tries to use several files that could be something else than > > fonts, like default.gz > > > > Looking for fonts in the current directory is ok when the filename is > > actually specified on the command line by the user; looking for > > >20 files first in the current directory and then in a bunch of others > > when the user does "consolechars -d" > > Did you really check what kbd does ? kbd's config scripts copy (at least used to back in '97) the user's default font to default.gz - therefore the user gets the "proper" default font whenever he calls setfont/consolechars to reset the font to the default (or a program calls it on his behalf). > No. That is maybe an insufficient documentation, but "default font" > refers to "something like" the default font at kernel bootup time. > Except that the kernel does not provide any means to restore it, so we > look for files that should contain a font sufficiently close to this. > > And yes, it is *really* badly done for non-i386 archs, but this is a > known problem. > > Anyway /etc/console-tools is Debian-specific. To do what you need, please call: > > /etc/init.d/console-screen.sh Hmm maybe reassign this bug to _all_ the packages that call consolechars/setfont then? ;)   Information forwarded to debian-bugs-dist@lists.debian.org, Yann Dirson <dirson@debian.org>:
Bug#81333; Package console-tools.   debian-bugs-dist@lists.debian.orgYann Dirson  Subject: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Reply-To: Tuomas Heino , 81333@bugs.debian.org Resent-From: Tuomas Heino Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Yann Dirson Resent-Date: Sat, 06 Jan 2001 09:18:07 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 81333 X-Debian-PR-Package: console-tools X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 81333-bugs@bugs.debian.org id=B81333.97877240911356 (code B ref 81333); Sat, 06 Jan 2001 09:18:07 GMT Date: Sat, 6 Jan 2001 11:13:22 +0200 (EET) From: Tuomas Heino X-Sender: iheino@smaragdi.hut.fi To: Yann Dirson cc: 81333@bugs.debian.org In-Reply-To: <20010105234708.A23371@bylbo.nowhere.earth> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Delivered-To: 81333@bugs.debian.org On Fri, 5 Jan 2001, Yann Dirson wrote: > Did you really check what kbd does ? Well forgot to do that this time but still the contents of the "default" font have changed from the kbd times - from config-script-generated to distro-provided. > While console-tools does: > > if (requested_height == 0) > { > if ((fpi = findfont("default", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && > (fpi = findfont("default8x16", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && > (fpi = findfont("default8x14", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && > (fpi = findfont("default8x08", pathname, sizeof(pathname), NULL, &font_magic)) == NULL) > { > fprintf(stderr, _("Cannot find a default font file.\n")); > exit(1); > } > } > else > { > sprintf(defname, "default8x%02d", requested_height); > if ((fpi = findfont(defname, pathname, sizeof(pathname), NULL, &font_magic)) == NULL) > { > fprintf(stderr, _("Cannot find default font file `default8x%02d'.\n"), requested_height); > exit(1); > } > } > > With: > > static const char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", > #ifdef LOCALDATADIR > LOCALDATADIR "/" FONTDIR "/", > #endif > 0 }; > > ... which you won't find to be *so* different > > > Instead it should be kludged to use the default font in > > /etc/console-tools/config (then that config file could have a fixed > > path to prevent things from getting "mixed up";) > > No. That is maybe an insufficient documentation, but "default font" > refers to "something like" the default font at kernel bootup time. > Except that the kernel does not provide any means to restore it, so we > look for files that should contain a font sufficiently close to this. Well if we wanted to implement a kludge to skip cwd for -d, it would be quite easy to implement - assuming you can add parameters to findfont() without breaking other apps - add a flag to findfont specifying whether you want the current directory to be searched or not and turn that flag off when searching for the default font. (Or maybe reverse the directory search order for -d?;) As another related thing: if a user happens to be editing fonts and has say... crap, crap.txt, crap.c, crap.psf and default8x16.psf.gz.psf.bz2 in the current directory and then tries to: consolechars -fcrap consolechars -fdefault8x16.psf.gz consolechars -f./lat1u-16 The first two will load "crap" and "default8x16.psf.gz.psf.bz2" from current directory; the user may have expected for it to load crap.psf and /usr/share/consolefonts/default8x16.psf.gz And the third one will load /usr/share/consolefonts/./lat1u-16.psf.gz - which may suprise the user even more ;) But maybe I should shut up... Or mention the reason for the existence of such UI bugs - which is everyone reimplementing the wheel (path searching this time).   Acknowledgement sent to Tuomas Heino <iheino@cc.hut.fi>:
Extra info received and forwarded to list. Copy sent to Yann Dirson <dirson@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Tuomas Heino Subject: Bug#81333: Info received (was Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack-info-maintonly 81333 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Yann Dirson If you wish to continue to submit further information on your problem, please send it to 81333@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at 81333) by bugs.debian.org; 6 Jan 2001 09:13:29 +0000 From iheino@cc.hut.fi Sat Jan 06 03:13:29 2001 Return-path: Received: from tiku.hut.fi [130.233.228.86] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14EpPk-0002x7-00; Sat, 06 Jan 2001 03:13:28 -0600 Received: from smaragdi.hut.fi (iheino@smaragdi.hut.fi [130.233.249.81]) by tiku.hut.fi (8.9.3/8.9.3) with ESMTP id LAA14536; Sat, 6 Jan 2001 11:13:23 +0200 (EET) Date: Sat, 6 Jan 2001 11:13:22 +0200 (EET) From: Tuomas Heino X-Sender: iheino@smaragdi.hut.fi To: Yann Dirson cc: 81333@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do In-Reply-To: <20010105234708.A23371@bylbo.nowhere.earth> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Delivered-To: 81333@bugs.debian.org On Fri, 5 Jan 2001, Yann Dirson wrote: > Did you really check what kbd does ? Well forgot to do that this time but still the contents of the "default" font have changed from the kbd times - from config-script-generated to distro-provided. > While console-tools does: > > if (requested_height == 0) > { > if ((fpi = findfont("default", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && > (fpi = findfont("default8x16", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && > (fpi = findfont("default8x14", pathname, sizeof(pathname), NULL, &font_magic)) == NULL && > (fpi = findfont("default8x08", pathname, sizeof(pathname), NULL, &font_magic)) == NULL) > { > fprintf(stderr, _("Cannot find a default font file.\n")); > exit(1); > } > } > else > { > sprintf(defname, "default8x%02d", requested_height); > if ((fpi = findfont(defname, pathname, sizeof(pathname), NULL, &font_magic)) == NULL) > { > fprintf(stderr, _("Cannot find default font file `default8x%02d'.\n"), requested_height); > exit(1); > } > } > > With: > > static const char *fontdirpath[] = { "", DATADIR "/" FONTDIR "/", > #ifdef LOCALDATADIR > LOCALDATADIR "/" FONTDIR "/", > #endif > 0 }; > > ... which you won't find to be *so* different > > > Instead it should be kludged to use the default font in > > /etc/console-tools/config (then that config file could have a fixed > > path to prevent things from getting "mixed up";) > > No. That is maybe an insufficient documentation, but "default font" > refers to "something like" the default font at kernel bootup time. > Except that the kernel does not provide any means to restore it, so we > look for files that should contain a font sufficiently close to this. Well if we wanted to implement a kludge to skip cwd for -d, it would be quite easy to implement - assuming you can add parameters to findfont() without breaking other apps - add a flag to findfont specifying whether you want the current directory to be searched or not and turn that flag off when searching for the default font. (Or maybe reverse the directory search order for -d?;) As another related thing: if a user happens to be editing fonts and has say... crap, crap.txt, crap.c, crap.psf and default8x16.psf.gz.psf.bz2 in the current directory and then tries to: consolechars -fcrap consolechars -fdefault8x16.psf.gz consolechars -f./lat1u-16 The first two will load "crap" and "default8x16.psf.gz.psf.bz2" from current directory; the user may have expected for it to load crap.psf and /usr/share/consolefonts/default8x16.psf.gz And the third one will load /usr/share/consolefonts/./lat1u-16.psf.gz - which may suprise the user even more ;) But maybe I should shut up... Or mention the reason for the existence of such UI bugs - which is everyone reimplementing the wheel (path searching this time).   Information forwarded to debian-bugs-dist@lists.debian.org, Yann Dirson <dirson@debian.org>:
Bug#81333; Package console-tools.   debian-bugs-dist@lists.debian.orgYann Dirson  Subject: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Reply-To: Yann Dirson , 81333@bugs.debian.org Resent-From: Yann Dirson Orignal-Sender: Yann Dirson Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Yann Dirson Resent-Date: Sat, 06 Jan 2001 11:18:18 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 81333 X-Debian-PR-Package: console-tools X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 81333-bugs@bugs.debian.org id=B81333.97877933030278 (code B ref 81333); Sat, 06 Jan 2001 11:18:18 GMT Date: Sat, 6 Jan 2001 12:21:51 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org Message-ID: <20010106122151.E23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 10:35:05AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333@bugs.debian.org On Sat, Jan 06, 2001 at 10:35:05AM +0200, Tuomas Heino wrote: > kbd's config scripts copy (at least used to back in '97) the user's > default font to default.gz - therefore the user gets the "proper" default > font whenever he calls setfont/consolechars to reset the font to the > default (or a program calls it on his behalf). Yes, but the "user's default font" is not a concept from the kbd upstream package (nor from console-tools, at least not yet). It is Debian-specific. OTOH, the kernel's idea of the default font is (well, not exactly, as explained, but you see what I mean). > > Anyway /etc/console-tools is Debian-specific. To do what you need, please call: > > > > /etc/init.d/console-screen.sh > > Hmm maybe reassign this bug to _all_ the packages that call > consolechars/setfont then? ;) Hm, with -d only, you mean ;) Please submit bugs on them, I was not hit by one, or didn't notice. Regards, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Acknowledgement sent to Yann Dirson <ydirson@altern.org>:
Extra info received and forwarded to list. Copy sent to Yann Dirson <dirson@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Yann Dirson Subject: Bug#81333: Info received (was Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: <20010106122151.E23371@bylbo.nowhere.earth> References: <20010106122151.E23371@bylbo.nowhere.earth> X-Debian-PR-Message: ack-info-maintonly 81333 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Yann Dirson If you wish to continue to submit further information on your problem, please send it to 81333@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at 81333) by bugs.debian.org; 6 Jan 2001 11:08:50 +0000 From ydirson@altern.org Sat Jan 06 05:08:50 2001 Return-path: Received: from smtp-abo-2.wanadoo.fr (amyris.wanadoo.fr) [193.252.19.150] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14ErDN-0007s8-00; Sat, 06 Jan 2001 05:08:49 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by amyris.wanadoo.fr; 6 Jan 2001 12:08:47 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14ErPz-0007qW-00; Sat, 06 Jan 2001 12:21:51 +0100 Date: Sat, 6 Jan 2001 12:21:51 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010106122151.E23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 10:35:05AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333@bugs.debian.org On Sat, Jan 06, 2001 at 10:35:05AM +0200, Tuomas Heino wrote: > kbd's config scripts copy (at least used to back in '97) the user's > default font to default.gz - therefore the user gets the "proper" default > font whenever he calls setfont/consolechars to reset the font to the > default (or a program calls it on his behalf). Yes, but the "user's default font" is not a concept from the kbd upstream package (nor from console-tools, at least not yet). It is Debian-specific. OTOH, the kernel's idea of the default font is (well, not exactly, as explained, but you see what I mean). > > Anyway /etc/console-tools is Debian-specific. To do what you need, please call: > > > > /etc/init.d/console-screen.sh > > Hmm maybe reassign this bug to _all_ the packages that call > consolechars/setfont then? ;) Hm, with -d only, you mean ;) Please submit bugs on them, I was not hit by one, or didn't notice. Regards, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Information forwarded to debian-bugs-dist@lists.debian.org, Yann Dirson <dirson@debian.org>:
Bug#81333; Package console-tools.   debian-bugs-dist@lists.debian.orgYann Dirson  Subject: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Reply-To: Yann Dirson , 81333@bugs.debian.org Resent-From: Yann Dirson Orignal-Sender: Yann Dirson Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Yann Dirson Resent-Date: Sat, 06 Jan 2001 11:33:29 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 81333 X-Debian-PR-Package: console-tools X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 81333-bugs@bugs.debian.org id=B81333.97878003631692 (code B ref 81333); Sat, 06 Jan 2001 11:33:29 GMT Date: Sat, 6 Jan 2001 12:33:42 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org, control@bugs.debian.org Message-ID: <20010106123342.F23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 11:13:22AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333@bugs.debian.org reopen 81333 thanks On Sat, Jan 06, 2001 at 11:13:22AM +0200, Tuomas Heino wrote: > On Fri, 5 Jan 2001, Yann Dirson wrote: > > > Did you really check what kbd does ? > > Well forgot to do that this time but still the contents of the "default" > font have changed from the kbd times - from config-script-generated to > distro-provided. Well, I don't think that "setfont -d" ever refered to the config-script-generated default, and console-tools still has this config-script-generated default. I *really* don't think anything significant changed here on console-tools side. Do you have examples of things that worked at that time the way you describe ? > > No. That is maybe an insufficient documentation, but "default font" > > refers to "something like" the default font at kernel bootup time. > > Except that the kernel does not provide any means to restore it, so we > > look for files that should contain a font sufficiently close to this. > > Well if we wanted to implement a kludge to skip cwd for -d, it would be > quite easy to implement - assuming you can add parameters to findfont() > without breaking other apps - add a flag to findfont specifying whether > you want the current directory to be searched or not and turn that flag > off when searching for the default font. findfont() in lct is merely a trivial wrapper around findfile(). Just a new wrapper could do the trick. It looks justified - reopening. > As another related thing: if a user happens to be editing fonts and has > say... crap, crap.txt, crap.c, crap.psf and default8x16.psf.gz.psf.bz2 > in the current directory and then tries to: > consolechars -fcrap > consolechars -fdefault8x16.psf.gz > consolechars -f./lat1u-16 > > The first two will load "crap" and "default8x16.psf.gz.psf.bz2" from > current directory; the user may have expected for it to load crap.psf and > /usr/share/consolefonts/default8x16.psf.gz This is a documentation problem in both kbd and lct. Maybe we should consider changing the behaviour not to look in pwd first. That should be thought of. You may want to open a wishlist item on this. > And the third one will load /usr/share/consolefonts/./lat1u-16.psf.gz - > which may suprise the user even more ;) Ah, this one is a bug, you're right. Could you please submit a bugreport ? > But maybe I should shut up... > Or mention the reason for the existence of such UI bugs - which is > everyone reimplementing the wheel (path searching this time). -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Acknowledgement sent to Yann Dirson <ydirson@altern.org>:
Extra info received and forwarded to list. Copy sent to Yann Dirson <dirson@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Yann Dirson Subject: Bug#81333: Info received (was Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: <20010106123342.F23371@bylbo.nowhere.earth> References: <20010106123342.F23371@bylbo.nowhere.earth> X-Debian-PR-Message: ack-info-maintonly 81333 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Yann Dirson If you wish to continue to submit further information on your problem, please send it to 81333@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at 81333) by bugs.debian.org; 6 Jan 2001 11:20:36 +0000 From ydirson@altern.org Sat Jan 06 05:20:35 2001 Return-path: Received: from (citronier.wanadoo.fr) [193.252.19.222] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14ErOl-0008F3-00; Sat, 06 Jan 2001 05:20:35 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by citronier.wanadoo.fr; 6 Jan 2001 12:20:33 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14ErbS-0007sQ-00; Sat, 06 Jan 2001 12:33:42 +0100 Date: Sat, 6 Jan 2001 12:33:42 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org, control@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010106123342.F23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 11:13:22AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333@bugs.debian.org reopen 81333 thanks On Sat, Jan 06, 2001 at 11:13:22AM +0200, Tuomas Heino wrote: > On Fri, 5 Jan 2001, Yann Dirson wrote: > > > Did you really check what kbd does ? > > Well forgot to do that this time but still the contents of the "default" > font have changed from the kbd times - from config-script-generated to > distro-provided. Well, I don't think that "setfont -d" ever refered to the config-script-generated default, and console-tools still has this config-script-generated default. I *really* don't think anything significant changed here on console-tools side. Do you have examples of things that worked at that time the way you describe ? > > No. That is maybe an insufficient documentation, but "default font" > > refers to "something like" the default font at kernel bootup time. > > Except that the kernel does not provide any means to restore it, so we > > look for files that should contain a font sufficiently close to this. > > Well if we wanted to implement a kludge to skip cwd for -d, it would be > quite easy to implement - assuming you can add parameters to findfont() > without breaking other apps - add a flag to findfont specifying whether > you want the current directory to be searched or not and turn that flag > off when searching for the default font. findfont() in lct is merely a trivial wrapper around findfile(). Just a new wrapper could do the trick. It looks justified - reopening. > As another related thing: if a user happens to be editing fonts and has > say... crap, crap.txt, crap.c, crap.psf and default8x16.psf.gz.psf.bz2 > in the current directory and then tries to: > consolechars -fcrap > consolechars -fdefault8x16.psf.gz > consolechars -f./lat1u-16 > > The first two will load "crap" and "default8x16.psf.gz.psf.bz2" from > current directory; the user may have expected for it to load crap.psf and > /usr/share/consolefonts/default8x16.psf.gz This is a documentation problem in both kbd and lct. Maybe we should consider changing the behaviour not to look in pwd first. That should be thought of. You may want to open a wishlist item on this. > And the third one will load /usr/share/consolefonts/./lat1u-16.psf.gz - > which may suprise the user even more ;) Ah, this one is a bug, you're right. Could you please submit a bugreport ? > But maybe I should shut up... > Or mention the reason for the existence of such UI bugs - which is > everyone reimplementing the wheel (path searching this time). -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Information forwarded to debian-bugs-dist@lists.debian.org, Yann Dirson <dirson@debian.org>:
Bug#81333; Package console-tools.   debian-bugs-dist@lists.debian.orgYann Dirson  Subject: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Reply-To: Yann Dirson , 81333@bugs.debian.org Resent-From: Yann Dirson Orignal-Sender: Yann Dirson Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Yann Dirson Resent-Date: Sat, 06 Jan 2001 11:33:36 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 81333 X-Debian-PR-Package: console-tools X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 81333-bugs@bugs.debian.org id=B81333.978780476442 (code B ref 81333); Sat, 06 Jan 2001 11:33:36 GMT Date: Sat, 6 Jan 2001 12:41:03 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org Message-ID: <20010106124103.G23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 11:13:22AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333@bugs.debian.org On Sat, Jan 06, 2001 at 11:13:22AM +0200, Tuomas Heino wrote: > consolechars -fdefault8x16.psf.gz > > [...] will load [...] "default8x16.psf.gz.psf.bz2" [...] Er... yes, this is another bug. Can you please open a new one ? Thanks, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Acknowledgement sent to Yann Dirson <ydirson@altern.org>:
Extra info received and forwarded to list. Copy sent to Yann Dirson <dirson@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Yann Dirson Subject: Bug#81333: Info received (was Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do) Message-ID: In-Reply-To: <20010106124103.G23371@bylbo.nowhere.earth> References: <20010106124103.G23371@bylbo.nowhere.earth> X-Debian-PR-Message: ack-info-maintonly 81333 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Yann Dirson If you wish to continue to submit further information on your problem, please send it to 81333@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at 81333) by bugs.debian.org; 6 Jan 2001 11:27:56 +0000 From ydirson@altern.org Sat Jan 06 05:27:56 2001 Return-path: Received: from (mahonia.wanadoo.fr) [193.252.19.58] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14ErVs-000074-00; Sat, 06 Jan 2001 05:27:56 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by mahonia.wanadoo.fr; 6 Jan 2001 12:27:54 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14EriZ-0007tm-00; Sat, 06 Jan 2001 12:41:03 +0100 Date: Sat, 6 Jan 2001 12:41:03 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010106124103.G23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 11:13:22AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: 81333@bugs.debian.org On Sat, Jan 06, 2001 at 11:13:22AM +0200, Tuomas Heino wrote: > consolechars -fdefault8x16.psf.gz > > [...] will load [...] "default8x16.psf.gz.psf.bz2" [...] Er... yes, this is another bug. Can you please open a new one ? Thanks, -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Bug reopened, originator not changed. Request was from Yann Dirson <ydirson@altern.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 6 Jan 2001 11:20:35 +0000 From ydirson@altern.org Sat Jan 06 05:20:35 2001 Return-path: Received: from (citronier.wanadoo.fr) [193.252.19.222] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14ErOl-0008F3-00; Sat, 06 Jan 2001 05:20:35 -0600 Received: from bylbo.nowhere.earth (213.56.236.154) by citronier.wanadoo.fr; 6 Jan 2001 12:20:33 +0100 Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.20 #1 (Debian)) id 14ErbS-0007sQ-00; Sat, 06 Jan 2001 12:33:42 +0100 Date: Sat, 6 Jan 2001 12:33:42 +0100 To: Tuomas Heino Cc: 81333@bugs.debian.org, control@bugs.debian.org Subject: Re: Bug#81333: console-tools: console-chars -d is "useless" as is... compared to what setfont used to do Message-ID: <20010106123342.F23371@bylbo.nowhere.earth> References: <20010105234708.A23371@bylbo.nowhere.earth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from iheino@cc.hut.fi on Sat, Jan 06, 2001 at 11:13:22AM +0200 From: Yann Dirson Sender: Yann Dirson Delivered-To: control@bugs.debian.org reopen 81333 thanks On Sat, Jan 06, 2001 at 11:13:22AM +0200, Tuomas Heino wrote: > On Fri, 5 Jan 2001, Yann Dirson wrote: > > > Did you really check what kbd does ? > > Well forgot to do that this time but still the contents of the "default" > font have changed from the kbd times - from config-script-generated to > distro-provided. Well, I don't think that "setfont -d" ever refered to the config-script-generated default, and console-tools still has this config-script-generated default. I *really* don't think anything significant changed here on console-tools side. Do you have examples of things that worked at that time the way you describe ? > > No. That is maybe an insufficient documentation, but "default font" > > refers to "something like" the default font at kernel bootup time. > > Except that the kernel does not provide any means to restore it, so we > > look for files that should contain a font sufficiently close to this. > > Well if we wanted to implement a kludge to skip cwd for -d, it would be > quite easy to implement - assuming you can add parameters to findfont() > without breaking other apps - add a flag to findfont specifying whether > you want the current directory to be searched or not and turn that flag > off when searching for the default font. findfont() in lct is merely a trivial wrapper around findfile(). Just a new wrapper could do the trick. It looks justified - reopening. > As another related thing: if a user happens to be editing fonts and has > say... crap, crap.txt, crap.c, crap.psf and default8x16.psf.gz.psf.bz2 > in the current directory and then tries to: > consolechars -fcrap > consolechars -fdefault8x16.psf.gz > consolechars -f./lat1u-16 > > The first two will load "crap" and "default8x16.psf.gz.psf.bz2" from > current directory; the user may have expected for it to load crap.psf and > /usr/share/consolefonts/default8x16.psf.gz This is a documentation problem in both kbd and lct. Maybe we should consider changing the behaviour not to look in pwd first. That should be thought of. You may want to open a wishlist item on this. > And the third one will load /usr/share/consolefonts/./lat1u-16.psf.gz - > which may suprise the user even more ;) Ah, this one is a bug, you're right. Could you please submit a bugreport ? > But maybe I should shut up... > Or mention the reason for the existence of such UI bugs - which is > everyone reimplementing the wheel (path searching this time). -- Yann Dirson | Why make M$-Bill richer & richer ? debian-email: | Support Debian GNU/Linux: | Cheaper, more Powerful, more Stable ! http://ydirson.free.fr/ | Check   Changed Bug title. Request was from "Alastair" <mckinstry@computer.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 8 Sep 2003 16:05:00 +0000 From apache@bob.cs-consultants.com Mon Sep 08 11:04:58 2003 Return-path: Received: from arlo.cs-consultants.com (mail.cs-consultants.com) [212.15.87.207] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 19wOVd-0002BM-00; Mon, 08 Sep 2003 11:04:57 -0500 Received: from bob.cs-consultants.com (localhost.localdomain [127.0.0.1]) by mail.cs-consultants.com (8.12.6/8.12.6) with ESMTP id h88Fok3X006474 for ; Mon, 8 Sep 2003 16:50:46 +0100 Received: (from apache@localhost) by bob.cs-consultants.com (8.12.6/8.12.6/Submit) id h88FokF8006473; Mon, 8 Sep 2003 16:50:46 +0100 Message-Id: <200309081550.h88FokF8006473@bob.cs-consultants.com> Received: from client 217.163.5.253 for UebiMiau2.7 (webmail client); Mon, 8 Sep 2003 16:50:46 -0000 Date: Mon, 8 Sep 2003 16:50:46 -0000 From: "Alastair" To: control@bugs.debian.org Reply-to: "Alastair" Subject: console-data X-Priority: 3 X-Mailer: UebiMiau 2.7.2 X-Original-IP: 217.163.5.253 Content-Transfer-Encoding: 8bit X-MSMail-Priority: Medium Importance: Medium Content-Type: text/plain; charset="iso-8859-1"; MIME-Version: 1.0 Delivered-To: control@bugs.debian.org X-Spam-Status: No, hits=3.0 required=4.0 tests=MISSING_MIMEOLE,MISSING_OUTLOOK_NAME,MSG_ID_ADDED_BY_MTA_2 version=2.53-bugs.debian.org_2003_8_27 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (1.174.2.15-2003-03-30-exp) retitle 81333 consolechars findfile() bugs thanks ________________________________________________ Message sent using UebiMiau 2.7.2   Severity set to `minor'. Request was from "Alastair" <mckinstry@computer.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 16 Sep 2003 07:40:08 +0000 From apache@bob.cs-consultants.com Tue Sep 16 02:39:41 2003 Return-path: Received: from arlo.cs-consultants.com (mail.cs-consultants.com) [212.15.87.207] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 19zAR1-0004AG-00; Tue, 16 Sep 2003 02:39:39 -0500 Received: from bob.cs-consultants.com (localhost.localdomain [127.0.0.1]) by mail.cs-consultants.com (8.12.6/8.12.6) with ESMTP id h8G7OZk7029133 for ; Tue, 16 Sep 2003 08:24:36 +0100 Received: (from apache@localhost) by bob.cs-consultants.com (8.12.6/8.12.6/Submit) id h8G7OZdV029132; Tue, 16 Sep 2003 08:24:35 +0100 Message-Id: <200309160724.h8G7OZdV029132@bob.cs-consultants.com> Received: from client 217.163.5.253 for UebiMiau2.7 (webmail client); Tue, 16 Sep 2003 8:24:35 -0000 Date: Tue, 16 Sep 2003 8:24:35 -0000 From: "Alastair" To: control@bugs.debian.org Reply-to: "Alastair" Subject: lowering descriptions priority X-Priority: 3 X-Mailer: UebiMiau 2.7.2 X-Original-IP: 217.163.5.253 Content-Transfer-Encoding: 8bit X-MSMail-Priority: Medium Importance: Medium Content-Type: text/plain; charset="iso-8859-1"; MIME-Version: 1.0 Delivered-To: control@bugs.debian.org X-Spam-Status: No, hits=1.9 required=4.0 tests=BAYES_60,MSG_ID_ADDED_BY_MTA_2 version=2.53-bugs.debian.org_2003_9_14 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_14 (1.174.2.15-2003-03-30-exp) severity 209671 minor severity 209958 minor severity 210171 minor severity 81333 minor thanks ________________________________________________ Message sent using UebiMiau 2.7.2   Tags added: wontfix Request was from Alastair McKinstry <mckinstry@debian.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 12 Sep 2006 14:31:44 +0000 From mckinstry@debian.org Tue Sep 12 07:31:44 2006 Return-path: Received: from mx1out.nuigalway.ie ([140.203.7.200] helo=mx1.nuigalway.ie) by spohr.debian.org with esmtp (Exim 4.50) id 1GN9Ie-0006ld-8l for control@bugs.debian.org; Tue, 12 Sep 2006 07:31:44 -0700 Received: from bodkin.nuigalway.ie ([140.203.7.16]) by mx1.nuigalway.ie with ESMTP; 12 Sep 2006 15:31:09 +0100 X-IronPort-AV: i="4.09,154,1157324400"; d="scan'208"; a="83883349:sNHT20813736" Received: from CONVERSION-DAEMON.bodkin.nuigalway.ie by bodkin.nuigalway.ie (PMDF V6.2-X26 #30588) id <01M741V0NKBK003FJJ@bodkin.nuigalway.ie> for control@bugs.debian.org; Tue, 12 Sep 2006 15:21:14 +0000 (GMT) Received: from [140.203.16.25] (arnheim.it.nuigalway.ie [140.203.16.25]) by bodkin.nuigalway.ie (PMDF V6.2-X26 #30588) with ESMTP id <01M741V0A63U003POJ@bodkin.nuigalway.ie> for control@bugs.debian.org; Tue, 12 Sep 2006 15:21:13 +0000 (GMT) Date: Tue, 12 Sep 2006 15:31:44 +0100 From: Alastair McKinstry Subject: tagging wontfix To: control@bugs.debian.org Message-id: <4506C4D0.7080407@debian.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.5 (X11/20060728) Delivered-To: control@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,VALID_BTS_CONTROL autolearn=no version=2.60-bugs.debian.org_2005_01_02 tags 50587 wontfix tags 81333 wontfix thanks console-tools is dead upstream, so I am replacing it with kbd as soon as practicable - which now means post-etch. These bugs do not impact users significantly, so they will not get fixed. Sorry, Alastair McKinstry