Skip to content

Commit

Permalink
Tell Perl that the files might have UTF-8.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismgray committed Mar 15, 2012
1 parent 77fbc78 commit a580fa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perl/new_org.pm
Expand Up @@ -14,6 +14,8 @@ sub run_func_in_emacs($$;$) {
my $args = shift; my $args = shift;
my ($tf1, $tn1) = tempfile("/tmp/ikiwiki-org-1-XXXXX"); # Perl output, emacs input my ($tf1, $tn1) = tempfile("/tmp/ikiwiki-org-1-XXXXX"); # Perl output, emacs input
my ($tf2, $tn2) = tempfile("/tmp/ikiwiki-org-2-XXXXX"); # Perl input, emacs output my ($tf2, $tn2) = tempfile("/tmp/ikiwiki-org-2-XXXXX"); # Perl input, emacs output
binmode($tf1, ":utf8");
binmode($tf2, ":utf8");
print $tf1 $content; print $tf1 $content;
if (!defined $args) { $args = ""; } if (!defined $args) { $args = ""; }
# WARNING: possible security hole # WARNING: possible security hole
Expand Down

0 comments on commit a580fa8

Please sign in to comment.