summaryrefslogtreecommitdiff
path: root/update-xfonts-traditional
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2012-01-25 21:40:45 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2012-01-25 21:40:45 +0000
commitf9f6083daebcc935b890b7402ead8abd06a92d65 (patch)
treea657c4f3c8d8fa012ce97362e0cafe0aa3735abf /update-xfonts-traditional
parent1bbbeaf42afa4e7af424db60b2385fde0fb8ff48 (diff)
bdftopcf: special-case "no bdf data" return
Diffstat (limited to 'update-xfonts-traditional')
-rwxr-xr-xupdate-xfonts-traditional4
1 files changed, 4 insertions, 0 deletions
diff --git a/update-xfonts-traditional b/update-xfonts-traditional
index 619e2fa..fc750da 100755
--- a/update-xfonts-traditional
+++ b/update-xfonts-traditional
@@ -59,7 +59,9 @@ sub processbdf ($$$$) {
my ($w,$h,$xo,$yo,$y,$bitmap,$glyph);
my $modified=0;
%props = ();
+ my $anyinput=0;
while (<$inbdf>) {
+ $anyinput=1;
if ($state eq 'bitmap' && $y==$h) {
$glyph = uc $glyph;
$glyph =~ s/\;$//;
@@ -124,6 +126,8 @@ sub processbdf ($$$$) {
die $! if $inbdf->error;
die $! if $outbdf->error or !$outbdf->flush;
die unless $state eq 'idle';
+ return 'no bdf data' # also special cased in processpcfgz
+ if !$anyinput;
if ($modified) {
printf $logfile "%s: %d glyphs changed\n", $what, $modified
or die $!;