Hi,

We have somewhat spotted the reason of problems with Apache2 & mod_perl2 on several platforms (see bug report about this).

At present info about locale and language is passed from apache into gettext via perl with a set of gettext related functions like:

   Locale::Messages::nl_putenv("LC_MESSAGES=$loc");
   Locale::Messages::nl_putenv("LC_TIME=$loc");
   Locale::Messages::nl_putenv("LC_ALL=$loc");
Locale::Messages::nl_putenv("LANG=$loc"); Locale::Messages::nl_putenv("LANGUAGE=$loc");

Direct check shows that environment variables like these
are damaged or lost during this way at some platforms with some versions of Apache2 and mod_perl2.

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
is a html page with mason text, it tries to detach from the openxpki related details.
It is related to openxpki in one point only:
it uses openxpki.mo to print some translation to the screen.

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?

All the best, Sergei
===============================================



Attachment: check2.html.gz
Description: application/gzip

-------------------------------------------------------------------------
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