From: Ian Jackson Date: Wed, 25 Jan 2012 21:40:45 +0000 (+0000) Subject: bdftopcf: special-case "no bdf data" return X-Git-Tag: debian/1.3~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=inline;h=f9f6083daebcc935b890b7402ead8abd06a92d65;p=xfonts-traditional.git bdftopcf: special-case "no bdf data" return --- 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 $!;