> At 18:15 2005-12-06, you wrote:
>
>>> At 17:20 2005-12-06, you wrote:
>>>
>>>
>>>>> I am doing a fresh install of a mail-server.
>>>>> My setup is as follows (nothing is chrooted):
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> OS: OpenBSD 3.8
>>>>> Apache/1.3.29 (not chrooted)
>>>>> PHP 5.0.4
>>>>> mySQL 4.0.24 postfix 2.2.5p0 courier-authlib 0.57 courier-imap
>>>>> 4.0.6
>>>>>
>>>>>
>>>>> With all of the above tested and working, I proceeded
>>>>> to install:
>>>>>
>>>>> SquirrelMail 1.4.5
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> and I also unpacked the "all-locales" for 1.4.5 in the
>>>>> SquirrelMail
>>>>> directory (or rather ran the install- script)
>>>>>
>>>>> I went on to run conf.pl, loaded the presets for
>>>>> courier-imap, and set a few other options like the directories and
>>>>> so on. Everything works fine, except when I try to change the
>>>>> language under 'display options'. The choice I make 'sticks', but
>>>>>  has no effect on the squirrelmail interface.
>>>>>
>>>>> I have read the archives, and this is the troubleshooting
>>>>> I've done so far:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> phpinfo tells me its _not_ in safe_mode, which apparently could
>>>>> cause problems on openbsd. phpinfo also tells me gettext support
>>>>> is enabled, which I understand is the recommended way to go.
>>>>>
>>>>>
>>>>> Still, I cant get squat to happen, whatever language
>>>>> I choose. Doesn't matter if I try to change the
>>>>> language default with conf.pl of I try to change from the user
>>>>> interface. Everything is always english, and I get no error
>>>>> messages.
>>>>>
>>>>>
>>>>>
>>>>> Can someone help me troubleshoot from here?
>>>>> I am stuck.
>>>>>
>>>>>
>>>>
>>>> Could you check one modification?
>>>>
>>>>
>>>>
>>>> open functions/i18n.php, find --- } elseif (is_array($longlocale)) {
>>>>  // setting of all locales failed.
>>>> // we need string instead of array used in LOCALE key.
>>>> $longlocale=$sm_notAlias;
>>>> }
>>>> ---
>>>>
>>>>
>>>>
>>>> and replace it with
>>>>
>>>> ---
>>>> } elseif (is_array($longlocale)) {
>>>> // setting of all locales failed.
>>>> // we need string instead of array used in LOCALE key.
>>>> $longlocale=array_shift($languages[$sm_notAlias]['LOCALE']);
>>>> }
>>>> ---
>>>>
>>>>
>>>>
>>>> --
>>>> Tomas
>>>>
>>>>
>>>
>>> Thank you for taking a shot at helping me.
>>>
>>>
>>>
>>> I have done as you asked, i18n.php now contains:
>>> ---
>>> } elseif (is_array($longlocale)) {
>>> // setting of all locales failed.
>>> // we need string instead of array used in LOCALE key.
>>> // $longlocale=$sm_notAlias;
>>> $longlocale=array_shift($languages[$sm_notAlias]['LOCALE']);
>>> }
>>> ---
>>>
>>>
>>>
>>> I rebooted the entire machine just to be safe, but after reboot
>>> everything remains the same. It didnt do any difference. Any other
>>> suggestions on how to go on troubleshooting?
>>
>> attached test script. could you run it with ktrace?
>>
>> ktrace php gettext.php
>>
>> and show me ktrace.out.
>>
>> --
>> Tomas
>>
>
> Ran the script as instructed, the output is:
> ---
> Test
> ---
> If you need I could provide you with a root-shell on a freshly
> installed OpenBSD 3.8 for testing.

I don't need root shell to test it and I think I already know the cause.
Have spend some time on SourceForge OpenBSD 3.8 yesterday. PHP setlocale()
call does nothing on obsd. Function does not follow PHP manual and returns
string. This string does not look like locale name. setlocale() returned
false on older openbsd versions.

Open functions/i18n.php, find
----
// try setting locale
$retlocale=sq_setlocale(LC_ALL, $longlocale);
----

and override $retlocale variable.

---
// try setting locale
$retlocale=sq_setlocale(LC_ALL, $longlocale);
$retlocale = false;
---

If functions/i18n.php is adjusted to ignore OpenBSD setlocale output, you
will have other problem. gettext 0.10.40 libintl.so.1.1 library segfaults
with memory allocation error. If SquirrelMail scripts manage to load
translation files, php might break on first _("string") call. If php is
compiled with gettext 0.14.3, it works correctly.

I can't send bug report to OpenBSD developers with sendbug utility. I
think servers on SourceForge compile farm do not allow outbound
connections. PHP developers are already notified.

-- 
Tomas


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to