Skip to Content.
Sympa Menu

en - Re: [sympa-users] locale errors - possibly related to Debian environment

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Miles Fidelman <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] locale errors - possibly related to Debian environment
  • Date: Mon, 28 Aug 2006 11:40:37 -0400


Olivier Salaün - CRU wrote:
You probably did not restart/reload Apache after editing your sympa.conf...

Actually I did.

I also rebooted - to see if changes to /etc/environment effected anything.

Still getting the slew of errors each time I open the wwsympa web page.

Any other thoughts, or suggestions on how to track this down? It looks like the error is generated by this swatch of code in Language.pm

-----
foreach my $type (&POSIX::LC_ALL, &POSIX::LC_TIME) {
my $success;
foreach my $try ($locale.'.'.$locale2charset{$locale},
$locale.'.'.uc($locale2charset{$locale}), ## UpperCase
required for FreeBSD
$locale_dashless, ## Required on HPUX
$locale,
$lang
) {
if (&setlocale($type, $try)) {
$success = 1;
last;
}
}
unless ($success) {
&do_log('err','Failed to setlocale(%s) ; you either have a problem with the catalogue .mo files or you should extend available locales in your /etc/locale.gen (or /etc/sysconfig/i18n) file', $locale);
return undef;
}
-----

I'm guessing something isn't quite set up right going into this. I'm wondering if Sympa is looking for something in a place other than where Debian puts it (I built from source, since the Debian package is pretty far behind Sympa 5). Perhaps configuring with a different location for the locale directory or some such?

Thanks

Miles




Miles Fidelman wrote:
Thanks, but...

That's the first thing I did - setting supported_languages to en_US only - didn't fix the problem.

The second thing I did was to install all the locales listed in the error messages - still didn't fix the problem.

Which is what's stumping me.

Stefan Hornburg wrote:
|...]
The problem is that Debian supplies only a subset of locales according to your configuration of the locales package (can be changed with dpkg-reconfigure locales).

Use the supported_lang configuration parameter to list available locales.




Archive powered by MHonArc 2.6.19+.

Top of Page