summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner LEMBERG <wl@gnu.org>2011-08-14 14:46:19 +0000
committerWerner LEMBERG <wl@gnu.org>2011-08-14 14:46:19 +0000
commit6f2c67747d372a68d4e0080bccee220639f62300 (patch)
tree0f1f6932777bbb706710cf8a93be00c662d9b01b /src
parentbac8196e04f7c70cb3cb620a18120ea42774d1c7 (diff)
downloadgroff-git-6f2c67747d372a68d4e0080bccee220639f62300.tar.gz
[gropdf] More minor fixes.
* font/devpdf/Makefile.sub (MOSTLYCLEANADD): Don't attempt to install 'util/BuildFoundries', only used in 'make'. * src/devices/gropdf/gropdf.pl (<top>, GetType1): Make STDOUT and any font files read to be accessed in binary rather than text mode. Prevents errors when running on systems set up for UTF-8.
Diffstat (limited to 'src')
-rw-r--r--src/devices/gropdf/gropdf.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index e56aa2621..31b92d0f8 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -30,6 +30,7 @@ my %cfg;
$cfg{GROFF_VERSION}='@VERSION@';
$cfg{GROFF_FONT_PATH}='@GROFF_FONT_DIR@';
+binmode(STDOUT);
my @obj; # Array of PDF objects
my $objct=0; # Count of Objects
@@ -1995,6 +1996,7 @@ sub GetType1
OpenFile(\$f,$fontdir,"$file");
Msg(1,"Failed to open '$file'") if !defined($f);
+ binmode($f);
my $l=<$f>;