Skip to Content.
Sympa Menu

en - [sympa-users] Re: Upgrading sympa on FreeBSD

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün <address@concealed>
  • To: Jose Marcio Martins da Cruz <address@concealed>
  • Cc: address@concealed
  • Subject: [sympa-users] Re: Upgrading sympa on FreeBSD
  • Date: Mon, 06 Aug 2007 11:05:40 +0200

Hi Jose,

One problem with locales is that the naming schema changes from one OS to another ; we've had problems on SunOS, HPUX and FreeBSD with this including different cases, charset mentionned or not, missing characters (dashes),...

One most OS the locales are named ll_CC.ISO-8859-N whereas on FreeBSD it is ll_CC.ISO8859-N, with a missing dash ('-') after the ISO part. Over the time, we've made Sympa try different locales to adapt to each OS, see Language::SetLang() :

## Set Locale::Messages context
my $locale_dashless = $locale.'.'.$locale2charset{$locale};
$locale_dashless =~ s/-//g;
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;
}
}

It looks like we'll have to patch it again for FreeBSD users. We'll send a patch in this list today or tomorrow.

Jose Marcio Martins da Cruz a écrit :
I'm trying to upgrade sympa (5.2.1 -> 5.3.2) on FreeBSD.

When I type make, I get :

Checking available locales ...
#########################################################################################################
## IMPORTANT : Sympa is not able to use locales because they are not properly
configured on this server
## You should activate some of the following locales :
## bg_BG cs_CZ de_DE el_GR en_US es_ES et_EE eu_ES fi_FI fr_FR hu_HU
it_IT ja_JP nb_NO nl_NL oc_FR pl_PL pt_BR pt_PT ro_RO ru _RU sv_SE tr_TR zh_CN
## On Debian you should run the following command : dpkg-reconfigure locales
## On others systems, check /etc/locale.gen or /etc/sysconfig/i18n files
#########################################################################################################

But whey I check installed locales, I get :

$ locale -a | more
C
POSIX
af_ZA.ISO8859-1
af_ZA.ISO8859-15
af_ZA.UTF-8
[...]
Is it serious, doctor ??? How can I get rid of this ?




Archive powered by MHonArc 2.6.19+.

Top of Page