Hi Sergei & all,

On Tue, Oct 09, 2007 at 04:04:32PM +0400, Sergei Vyshenski wrote:
> We have somewhat spotted the reason of problems with 
> Apache2 & mod_perl2 on several platforms 
> (see bug report about this).
Thanks for the troubleshooting. I sort of gave up on it when spotting
the weird behaviour on the different systems I tested it on -
fortunately we do not need to use Apache2 in production.

> Looks very much like the non-portability bugs in both 
> Apache2 and mod_perl2. If somebody wants to trace these bugs
> further down and patch Apache2 and mod_perl2, maybe
> the script attached herewith could help. This script
I've converted this into a mod_perl handler, to make sure that Mason
is not the culprit, see attachment.

> Meanwhile Julia is ready to submit a workaround for 
> the OpenXPKI code which works on all platforms. The 
> idea is to substitute all 
> calls to gettext functions with calls of command-line
> gettext utility, with explicit (in advance) setting of 
> all necessary environment variables from the same 
> command-line. That is instead of calling xs or similar,
> call gettext executable in inverted apostrophes. 
> 
> This is an obvious hack and Michael has once protested 
> against this approach. He said that things like that
> violate the spirit of OpenSource, and we have to but
> 3rd parties and insist that they clean their code.
> 
> What do you think?
I am with Michael on that one. Nothing against hacks, I've tried
to pester some people too and stayed with the hacks because of
their response (cf. the Devel::StackTrace hack in OpenXPKI::Exception),
but this one looks quite ugly and slow. Just think about how many
times we call i18nGettext in a typical webpage!
Furthermore, it does not work for me on Mac OS X - I get the english
translation both with the Perl gettext and the command line gettext.

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

Attachment: TestModPerlHandler.pm
Description: Perl program

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel

Reply via email to