OpenBSD developers changed setlocale behavior in 3.8. OpenBSD does not
support LC_ALL category, but they don't follow own setlocale manual and
return string. String indicates successful locale call.

Due to newly invented and unexplained setlocale output SquirrelMail locale
detection fails. It assumes that locale name is
"C/pl_PL.ISO8859-2/C/C/C/C"

open functions/i18n.php

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

and replace it with
---
// try setting locale
$retlocale=false;
---

When I've talked about it on #openbsd irc channel, people said that it
should be fixed in 3.9-current. It looks like issue is not fixed.

> That's the output:
>
> string(25) "C/pl_PL.ISO8859-2/C/C/C/C" string(0) ""
>
>> Could you do a little test? Run attached test script and show output of
>> the script.
>>
>>> bash-3.1# sysctl -a kern.version
>>> kern.version=OpenBSD 3.9-current (GENERIC) #670: Sat Apr  1 23:34:55
>>> MST
>>> 2006
>>>     [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
>>>
>>> bash-3.1# ls -al pl_PL/LC_MESSAGES
>>> total 420
>>> drwxr-xr-x  2 _virtual  _virtual     512 Apr 13 16:04 .
>>> drwxr-xr-x  3 _virtual  _virtual     512 Apr 13 16:04 ..
>>> -rw-r--r--  1 _virtual  _virtual   95580 Apr  9 21:10 squirrelmail.mo
>>> -rw-r--r--  1 _virtual  _virtual  113793 Mar 27 21:49 squirrelmail.po
>>>
>>> Running apache 1.3.29 from base install of OpenBSD, and php from ports.
>>>
>>>>> I've got a problem with changing my language in the interface, it
>>>>> doesn't
>>>>> refresh, I set the default to Polish, changed the charset.
>>>>> And it's still in english.
>>>>
>>>> http://www.squirrelmail.org/wiki/SupportingMultipleLanguages
>>>>
>>>> Please provide information about used OS and listing of SquirrelMail
>>>> locale/pl_PL/LC_MESSAGES directory.
>>>>
>>>> --
>>>> Tomas
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> --
> squirrelmail-users mailing list
> Posting Guidelines:
> http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
> List Address: squirrelmail-users@lists.sourceforge.net
> List Archives:
> http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
> List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
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