]> Dogcows Code - chaz/git-codeowners/blobdiff - lib/App/Codeowners/Formatter/String.pm
fix printing wide char with YAML formatter
[chaz/git-codeowners] / lib / App / Codeowners / Formatter / String.pm
index ecc0808c9b53c615d3d6a5e44d54bdb77f346183..e6613c1954dbfb5b009097804ab17190b59e0bd5 100644 (file)
@@ -18,7 +18,6 @@ use parent 'App::Codeowners::Formatter';
 
 use App::Codeowners::Util qw(stringf zip);
 use Color::ANSI::Util 0.03 qw(ansifg);
-use Encode qw(encode);
 
 sub stream {
     my $self    = shift;
@@ -34,7 +33,7 @@ sub stream {
     );
 
     my $text = stringf($self->format, %info);
-    print { $self->handle } encode('UTF-8', $text), "\n";
+    print { $self->handle } $text, "\n";
 }
 
 sub _expand_filter_args {
This page took 0.017241 seconds and 4 git commands to generate.