[interchange-cvs] interchange - heins modified lib/Vend/Config.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Mon Jul 22 12:08:01 2002


User:      heins
Date:      2002-07-22 16:07:03 GMT
Modified:  lib/Vend Config.pm
Log:
* Fix incompatibility in Perl 5.005-style regex that causes rejection
  of certain Locale settings. (You have to put - at the beginning of a
  char class anymore).

Revision  Changes    Path
2.57      +3 -3      interchange/lib/Vend/Config.pm


rev 2.57, prev_rev 2.56
Index: Config.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/Config.pm,v
retrieving revision 2.56
retrieving revision 2.57
diff -u -r2.56 -r2.57
--- Config.pm	21 Jul 2002 01:15:02 -0000	2.56
+++ Config.pm	22 Jul 2002 16:07:01 -0000	2.57
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.56 2002/07/21 01:15:02 mheins Exp $
+# $Id: Config.pm,v 2.57 2002/07/22 16:07:01 mheins Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -44,7 +44,7 @@
 use Vend::Parse;
 use Vend::Util;
=20
-$VERSION =3D substr(q$Revision: 2.56 $, 10);
+$VERSION =3D substr(q$Revision: 2.57 $, 10);
=20
 my %CDname;
=20
@@ -1850,7 +1850,7 @@
 			unless defined $c->{frac_digits};
 		$store->{$name} =3D $c;
 	}
-	elsif ($settings =3D~ s/^\s*([\w.@-]+)\s+//) {
+	elsif ($settings =3D~ s/^\s*([-\w.@]+)\s+//) {
 		$name =3D $1;
=20
 		undef $eval;