Skip to content

Commit

Permalink
Fix missing subroutine when MINIVEND_DISABLE_UTF8 is set
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christensen committed Nov 14, 2016
1 parent 93fa3c5 commit 0f0d8fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Vend/Util.pm
Expand Up @@ -28,6 +28,10 @@ unless( $ENV{MINIVEND_DISABLE_UTF8} ) {
require Encode;
import Encode qw( is_utf8 encode_utf8 );
}
else {
# sub returning false when UTF8 is disabled
*is_utf8 = sub { };
}

@ISA = qw(Exporter);

Expand Down

0 comments on commit 0f0d8fa

Please sign in to comment.