]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/mknews.perl
doc: mknews: force plain-text NEWS to UTF-8
[public-inbox.git] / Documentation / mknews.perl
index 509da3b123d54aa91f0678404c0fd68e5064da6b..e78c1cb87c57062e074abe37c0d0becce69c36dc 100755 (executable)
@@ -26,7 +26,7 @@ my $mtime = msg_datestamp($mime_latest->header_obj);
 my $tmp = "$dst+";
 my $out;
 if ($dst eq 'NEWS') {
-       open $out, '>', $tmp or die;
+       open $out, '>:encoding(utf8)', $tmp or die;
        mime2txt($out, $mime_latest);
        for my $v (@releases) {
                print $out "\n" or die;