Skip to content

Commit

Permalink
fix encoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed May 27, 2017
1 parent 3c5d64e commit 11fc379
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Gitprep/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ sub get_wiki_pages {
# Pages
my @pages;
while (my $file = readdir $dh) {
$file = decode('UTF-8', $file);
next if $file =~ /^\./;
$file =~ s/\.[^\.]+$//;
push @pages, $file;
Expand Down

0 comments on commit 11fc379

Please sign in to comment.