From: Shlomi Fish Date: Wed, 15 Dec 2021 19:45:18 +0000 (+0200) Subject: Silence compile-time or run-time warnings. X-Git-Tag: fortune-mod-3.12.0~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f283b06bc530eda6dd040baaae88c1b04636cbe2;p=fortune-mod Silence compile-time or run-time warnings. "Wide character" / utf-8. See: * https://duckduckgo.com/?q=warnings+programming&atb=v140-1&ia=web They are a distraction at best and may indicate other issues. --- diff --git a/fortune-mod/fortune/gen-fortune-docbook-page.pl b/fortune-mod/fortune/gen-fortune-docbook-page.pl index 6ab78c5..41a4c66 100644 --- a/fortune-mod/fortune/gen-fortune-docbook-page.pl +++ b/fortune-mod/fortune/gen-fortune-docbook-page.pl @@ -44,7 +44,7 @@ if ( $dirname and ( !-e $dirname ) ) } # The :raw is to prevent CRs on Win32/etc. -open my $out, '>:encoding(utf-8):raw', $output_fn; +open my $out, '>:raw:encoding(utf-8)', $output_fn; $out->print(<<'END_OF_STRING');