X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fgit-codeowners;a=blobdiff_plain;f=lib%2FApp%2FCodeowners.pm;h=ac88f6184c91440656f7f9f83f4662953b01372b;hp=3ab012d137fa72cc7fcaa60851a9eb3661d282c3;hb=1c893b7e095fdaffdf47ffee426407a1f7e305fb;hpb=394cf108a349a62a3ae7a5d0137b9c8a90faac5b diff --git a/lib/App/Codeowners.pm b/lib/App/Codeowners.pm index 3ab012d..ac88f61 100644 --- a/lib/App/Codeowners.pm +++ b/lib/App/Codeowners.pm @@ -10,7 +10,6 @@ use App::Codeowners::Formatter; use App::Codeowners::Options; use App::Codeowners::Util qw(find_codeowners_in_directory run_git git_ls_files git_toplevel); use Color::ANSI::Util 0.03 qw(ansifg); -use Encode qw(encode); use File::Codeowners; use Path::Tiny; @@ -36,6 +35,8 @@ sub main { my $command = $opts->command; my $handler = $self->can("_command_$command") or die "Unknown command: $command\n"; + + binmode(STDOUT, ':encoding(UTF-8)'); $self->$handler($opts); exit 0;