Skip to content

Commit

Permalink
* Make Encode.pm use conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
perusionmike committed Apr 28, 2009
1 parent ea9f74b commit c8f96cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/Vend/Util.pm
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
# $Id: Util.pm,v 2.124 2009-03-22 19:32:31 mheins Exp $
# $Id: Util.pm,v 2.125 2009-04-28 14:11:39 mheins Exp $
#
# Copyright (C) 2002-2008 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
Expand All @@ -26,7 +26,10 @@
package Vend::Util;
require Exporter;

use Encode qw(encode_utf8);
unless( $ENV{MINIVEND_DISABLE_UTF8} ) {
require Encode;
import Encode qw( is_utf8 );
}

@ISA = qw(Exporter);

Expand Down Expand Up @@ -93,7 +96,7 @@ use Safe;
use Vend::File;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
$VERSION = substr(q$Revision: 2.124 $, 10);
$VERSION = substr(q$Revision: 2.125 $, 10);

my $Eval_routine;
my $Eval_routine_file;
Expand Down

0 comments on commit c8f96cf

Please sign in to comment.