Commits

Shlomi Fish committed 117134d

Fix the encoding to be UTF-8 and exclude some temporary files.

Comments (0)

Files changed (1)

mikmod-website/process.pl

         {
             $template->process($result->path(), $vars,
                 File::Spec->catfile(File::Spec->curdir(), "dest",
-                    @{$result->dir_components()}, $basename)
+                    @{$result->dir_components()}, $basename),
+                binmode => ':utf8',
             )
                 or die $template->error();
         }
-        elsif ($basename !~ /~\z/)
+        elsif (
+            $basename !~ /~\z/
+            && ( !($basename =~ /\A\./ && $basename =~ /\.swp\z/) )
+            && ($basename ne 'process.pl')
+        )
         {
             copy($result->path,
                 File::Spec->catfile(File::Spec->curdir(), "dest",