From: Ross Smith II Date: Sat, 16 Aug 2003 13:23:07 +0000 (+0000) Subject: Applied patch #780781: Missing binmode in Producer/GraphViz.pm. X-Git-Tag: v0.04~324 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=28c31cbf9715854cd5ceb65a7999d96f2903ad0f;p=dbsrgits%2FSQL-Translator.git Applied patch #780781: Missing binmode in Producer/GraphViz.pm. See http://sourceforge.net/tracker/index.php?func=detail&aid=780781&group_id=47619&atid=450051 --- diff --git a/lib/SQL/Translator/Producer/GraphViz.pm b/lib/SQL/Translator/Producer/GraphViz.pm index f5d3333..64f17df 100644 --- a/lib/SQL/Translator/Producer/GraphViz.pm +++ b/lib/SQL/Translator/Producer/GraphViz.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::GraphViz; # ------------------------------------------------------------------- -# $Id: GraphViz.pm,v 1.6 2003-08-04 18:41:45 kycl4rk Exp $ +# $Id: GraphViz.pm,v 1.7 2003-08-16 13:23:07 rossta Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark # @@ -27,7 +27,7 @@ use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(debug); use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use constant VALID_LAYOUT => { @@ -227,6 +227,7 @@ sub produce { my $output_method = "as_$output_type"; if ( $out_file ) { open my $fh, ">$out_file" or die "Can't write '$out_file': $!\n"; + binmode $fh; print $fh $gv->$output_method; close $fh; }