X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FApp%2FCodeowners%2FOptions.pm;h=db7261e0a2bf87eab8f8e1902df65277f4efe315;hb=2ce4094a9656c27b2b83442e11b86e44306525bf;hp=153376fc3a1bb0cb7efe9c16e28f96ec408c3749;hpb=4a8ff75b5b2f7bfaadc936757dc2a0f5de3c57e3;p=chaz%2Fgit-codeowners diff --git a/lib/App/Codeowners/Options.pm b/lib/App/Codeowners/Options.pm index 153376f..db7261e 100644 --- a/lib/App/Codeowners/Options.pm +++ b/lib/App/Codeowners/Options.pm @@ -5,10 +5,11 @@ use v5.10.1; use warnings; use strict; +use Encode qw(decode); use Getopt::Long 2.39 (); use Path::Tiny; -our $VERSION = '0.47'; # VERSION +our $VERSION = '0.49'; # VERSION sub pod2usage { eval { require Pod::Usage }; @@ -82,6 +83,9 @@ sub new { my $class = shift; my @args = @_; + # assume UTF-8 args if non-ASCII + @args = map { decode('UTF-8', $_) } @args if grep { /\P{ASCII}/ } @args; + my $self = bless {}, $class; my @args_copy = @args; @@ -299,7 +303,7 @@ App::Codeowners::Options - Getopt and shell completion for App::Codeowners =head1 VERSION -version 0.47 +version 0.49 =head1 METHODS