[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] private/generate-tag-summary --in-place: Avoid mojibake by not double-encoding UTF-8



Title: GitLab

Axel Beckert pushed to branch master at lintian / lintian

Commits:

  • 4fd76dc5
    by Axel Beckert at 2024-02-05T21:34:04+01:00
    private/generate-tag-summary --in-place: Avoid mojibake by not double-encoding UTF-8
    

1 changed file:

Changes:

  • private/generate-tag-summary
    ... ... @@ -95,7 +95,7 @@ if ($opt{'in-place'}) {
    95 95
           or die encode_utf8("Cannot open $infile");
    
    96 96
     
    
    97 97
         my $outfile = 'debian/changelog.tmp';
    
    98
    -    open(my $out_fd, '>:encoding(UTF-8)', $outfile)
    
    98
    +    open(my $out_fd, '>', $outfile)
    
    99 99
           or die encode_utf8("Cannot open $outfile");
    
    100 100
     
    
    101 101
         while (my $line = <$in_fd>) {
    


  • Reply to: