From f9f6083daebcc935b890b7402ead8abd06a92d65 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 25 Jan 2012 21:40:45 +0000 Subject: [PATCH] bdftopcf: special-case "no bdf data" return --- update-xfonts-traditional | 4 ++++ 1 file changed, 4 insertions(+) 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 $!; -- 2.30.2