Hi Sergei,

On Thu, Jul 17, 2008 at 07:29:32PM +0400, Sergei Vyshenski wrote:
> 1. Yet another very simple workaround for Apache2+modperl2 vs gettext 
> compatibility problem.
> 
> Just call "pure perl" version of the subroutine:
> 
> Locale::gettext_pp::gettext(bindtextdomain) etc
> 
> instead of Locale::gettext_xs. The latter evidently works incorrectly.

Indeed.

> Maybe you could comment on productivity aspect of such a change?

I'll have to try that out, but I doubt it would make any real impact -
have you experienced one?

> And test if this works on your side?

I'll try it out tomorrow or on Monday and if it works and poses no
greater impact, I'll check it in as well ...

> b. Locale::gettext_pp::gettext works ok everywhere.

OK, then I guess this is what we should use.

> c. Locale::gettext_xs::gettext works ok from regular perl script, and from 
> under Apache1.3 with mod_perl, and
> from under Apache2.2 with mod_cgi.
> 
> It does not work from under Apache2.2 with mod_perl2.
> 
> "Does not work" means: it returns supplied argument without translating it.
> Very similar to the explicit bug from point 2a above?

Yes, it does ... Have you filed those bugs in the RT tracker against
the module? Maybe nobody except for us noticed them yet ;-)

> B. Explicitly call each time
> 
> Locale::gettext_pp::gettext(bindtextdomain) etc

I don't think we have too many calls for gettext, so I believe this is
the way to go. Thanks for the further research on this.

Cheers,
  Alex
-- 
Dipl.-Math. Alexander Klink | IT-Security Engineer
        [EMAIL PROTECTED] | working @ urn:oid:1.3.6.1.4.1.11417

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel

Reply via email to