[interchange-cvs] interchange - heins modified code/UserTag/loc.tag

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Sun Jul 27 03:32:00 EDT 2003


User:      heins
Date:      2003-07-27 06:32:09 GMT
Modified:  code/UserTag loc.tag
Log:
* Turns out this technique for no_locale_parse would cause an endless
  loop. By turning off the "l" alias, this prevents the problem.

* This could have some side-effects in PreFork mode, so you wouldn't
  want to use Pragma no_locale_parse then. If you have that much
  traffic, you will be wanting to remove the UI from the customer-facing
  side anyway so that will not be a problem.

Revision  Changes    Path
1.4       +2 -0      interchange/code/UserTag/loc.tag


rev 1.4, prev_rev 1.3
Index: loc.tag
===================================================================
RCS file: /var/cvs/interchange/code/UserTag/loc.tag,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- loc.tag	26 Jul 2003 22:01:12 -0000	1.3
+++ loc.tag	27 Jul 2003 06:32:08 -0000	1.4
@@ -11,6 +11,8 @@
 sub {
     my ($locale, $message) = @_;
     if($::Pragma->{no_locale_parse}) {
+		## Need to do this but might have side-effects in PreFork mode
+		undef $Vend::Parse::myRefs{Alias}{l};
 		my $begin = '[L';
 		$begin .= " $locale" if $locale;
 		$begin .= ']';







More information about the interchange-cvs mailing list