Subject: sympa: UTF-8 and Language::SetLang() Failed to setlocale
Package: sympa
Version: 5.3.4-6.1
Severity: normal

*** Please type your report below this line ***

Dear Debian folks,


this report might be related to [1] and [2].

I installed sympa on a machine with

$ locale -a
C
en_US.utf8
POSIX

and while accessing WWSympa the following messages were logged in
syslog.

Jan 19 15:30:14 x sympa[6648]: Server started for all, pid 6651 
Jan 19 15:30:14 x sympa[6651]: Sympa 5.3.4 started 
Jan 19 15:30:14 x sympa[6651]: Language::SetLang() Failed to setlocale(de_DE) ; 
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

After doing

sudo dpkg-reconfigure locales

as proposed in [1], I have now

$ locale -a
C
de_DE
de_DE.iso88591
de_DE.utf8
deutsch
en_AU.utf8
en_US
en_US.iso88591
german
POSIX

but still get

Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Failed to setlocale(en_US) 
; 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
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Language::SetLang(), 
missing locale parameter
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Failed to setlocale(en_US) 
; 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
Jan 19 19:13:51 x wwsympa[4663]: [robot listhost.x.bar] [client 85.178.170.224] 
main::do_home() do_home
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Failed to setlocale(en_US) 
; 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
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Language::SetLang(), 
missing locale parameter
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Failed to setlocale(en_US) 
; 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
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Language::SetLang(), 
missing locale parameter
Jan 19 19:13:51 x wwsympa[4663]: Language::SetLang() Failed to setlocale(en_US) 
; 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

I do not know why now it changed back from de_DE to en_US.

$ sudo grep lang sympa.conf
## Default lang (cs | de | el | en_US | fr | hu | it | ja_JP | nl | oc |
pt_BR | tr)
lang            de
## Supported languages for the user interface
supported_lang  de,en_US

Ok, now I restarted sympa again, but did I did not restart the Apache
HTTP Server before. Now it works, so I do not know where this problem
got solved.

# Request #

Anyway, as far as I know, in Lenny UTF-8 is supposed to be the standard
encoding, so it is not convenient to install more locales.

I do not know where the problem is and if it was fixed in 5.4.4 or 6.0a.

Is there a solution, to make perl(?) play nicely with UTF-8. And if not,
could there be a warning added during package installation?


Thanks and sorry for this confusing report,

Paul


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472941
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443802

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to