From dc4fb960059c10030ecf74bd98830bf09ceca553 Mon Sep 17 00:00:00 2001 From: wl Date: Sun, 14 Aug 2011 14:46:19 +0000 Subject: [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 (, 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. --- src/devices/gropdf/gropdf.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/devices') diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl index e56aa262..31b92d0f 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>; -- cgit v1.2.1