interchange - heins modified lib/Vend/Util.pm

[email protected]
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
User:      heins
Date:      2009-04-28 14:11:39 GMT
Modified:  lib/Vend Util.pm
Log:
* Make Encode.pm use conditional.

Revision  Changes    Path
2.125                interchange/lib/Vend/Util.pm


rev 2.125, prev_rev 2.124
Index: Util.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Util.pm,v
retrieving revision 2.124
retrieving revision 2.125
diff -u -r2.124 -r2.125
--- Util.pm	22 Mar 2009 19:32:31 -0000	2.124
+++ Util.pm	28 Apr 2009 14:11:39 -0000	2.125
@@ -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.
@@ -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);
 
@@ -93,7 +96,7 @@
 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.