]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: mknews: force plain-text NEWS to UTF-8
authorEric Wong <e@80x24.org>
Sun, 3 Nov 2019 02:02:04 +0000 (02:02 +0000)
committerEric Wong <e@80x24.org>
Sun, 3 Nov 2019 02:03:32 +0000 (02:03 +0000)
We'll have non-7-bit ASCII in the 1.2.0 release notes.

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;