From 2d87e0f5c6e3d98119f240538e8daaf760cf9706 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 16 Nov 2000 11:07:37 +0000 Subject: [PATCH] * aclocal.in (write_aclocal): Set ``binmode'' after file has been opened, otherwise it has no effect. --- ChangeLog | 5 +++++ aclocal.in | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 52037ee..03dfe49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-11-16 Morten Eriksen + + * aclocal.in (write_aclocal): Set ``binmode'' after file has been + opened, otherwise it has no effect. + 2000-10-23 Morten Eriksen * aclocal.in (write_aclocal): Don't write aclocal.m4 with diff --git a/aclocal.in b/aclocal.in index d35a64a..901937d 100644 --- a/aclocal.in +++ b/aclocal.in @@ -427,6 +427,8 @@ sub write_aclocal print STDERR "Writing $output_file\n" if $verbosity; + open (ACLOCAL, "> " . $output_file) + || die "aclocal: couldn't open \`$output_file' for writing: $!\n"; # In case we're running under MSWindows, don't write with CRLF. # (This circumvents a bug in at least Cygwin bash where the shell @@ -434,8 +436,6 @@ sub write_aclocal # and CRLF.) binmode ACLOCAL; - open (ACLOCAL, "> " . $output_file) - || die "aclocal: couldn't open \`$output_file' for writing: $!\n"; print ACLOCAL "# $output_file generated automatically by aclocal $VERSION\n"; print ACLOCAL "\ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000 -- 2.7.4