1. Shlomi Fish
  2. mikmod-website

Commits

Shlomi Fish  committed 117134d

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

  • Participants
  • Parent commits c13a0f7
  • Branches default

Comments (0)

Files changed (1)

File mikmod-website/process.pl

View file
         {
             $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",