[interchange-cvs] interchange - racke modified lib/Vend/Util.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Wed Feb 12 10:04:00 2003


User:      racke
Date:      2003-02-12 15:03:06 GMT
Modified:  lib/Vend Util.pm
Log:
let unhexify mangle only representations of hex chars

problem by reported Ton, edition of locale records with %s
in keys didn't work

Revision  Changes    Path
2.49      +3 -3      interchange/lib/Vend/Util.pm


rev 2.49, prev_rev 2.48
Index: Util.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Util.pm,v
retrieving revision 2.48
retrieving revision 2.49
diff -u -r2.48 -r2.49
--- Util.pm	7 Feb 2003 16:41:57 -0000	2.48
+++ Util.pm	12 Feb 2003 15:03:06 -0000	2.49
@@ -1,6 +1,6 @@
 # Vend::Util - Interchange utility functions
 #
-# $Id: Util.pm,v 2.48 2003/02/07 16:41:57 mheins Exp $
+# $Id: Util.pm,v 2.49 2003/02/12 15:03:06 racke Exp $
 # 
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -85,7 +85,7 @@
 use Safe;
 use subs qw(logError logGlobal);
 use vars qw($VERSION @EXPORT @EXPORT_OK);
-$VERSION = substr(q$Revision: 2.48 $, 10);
+$VERSION = substr(q$Revision: 2.49 $, 10);
 
 BEGIN {
 	eval {
@@ -580,7 +580,7 @@
 
 sub unhexify {
     my $s = shift;
-    $s =~ s/%(..)/chr(hex($1))/ge;
+    $s =~ s/%([0-9A-Fa-f][0-9A-Fa-f])/chr(hex($1))/ge;
     return $s;
 }