From 269f72f14fb9e9338465da596f407391848386ad Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sun, 9 Jun 2019 01:49:57 +0300 Subject: [PATCH] win32 appveyor crlf fixes --- fortune-mod/fortune/gen-fortune-man-page.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fortune-mod/fortune/gen-fortune-man-page.pl b/fortune-mod/fortune/gen-fortune-man-page.pl index 8775273..aff4934 100644 --- a/fortune-mod/fortune/gen-fortune-man-page.pl +++ b/fortune-mod/fortune/gen-fortune-man-page.pl @@ -33,7 +33,9 @@ if ( $OFF and !defined($ocookiedir) ) { die "Please specify ocookiedir"; } -open my $out, '>', $output_fn; + +# The :raw is to prevent CRs on Win32/etc. +open my $out, '>:raw', $output_fn; $out->print(<<'END_OF_STRING'); .\" $NetBSD: fortune.6,v 1.4 1995/03/23 08:28:37 cgd Exp $ -- 2.40.0