You are not logged in.

#1 2011-07-17 18:04:49

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

error in daemon on locale

whenever I restart a daemon (squeezebox-server) I receive the same error

Your locale was detected as C, you may have problems with non-Latin filenames.  Consider changing your LANG variable to the correct locale, i.e. en_US.utf8

my locale is set as en_US.utf8 in rc.conf. Why do I still get this message?


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2011-07-17 18:07:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error in daemon on locale

Do you have your DAEMON_LOCALE set? To what?

rc.conf wrote:

If set to 'no', the C locale is used



If that didn't solve it, please post output of both 'locale -a' and 'locale'.

Last edited by karol (2011-07-17 18:08:21)

Offline

#3 2011-07-17 18:47:59

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: error in daemon on locale

thanks karol. I didn't had DAEMON_LOCALE set to anything. but after doing so I received the same message

[j@janus ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[j@janus ~]$ locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX

The problem is reported in a Perl written server (Squeezebox-Server) .

Last edited by theking2 (2011-07-17 18:49:13)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#4 2011-07-17 19:02:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error in daemon on locale

What did you set  DAEMON_LOCALE to? Did you reboot your computer?

Offline

#5 2011-07-17 19:12:46

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: error in daemon on locale

I did not reboot, I did restart the service. But with DAEMON_LOCALE=en_US.utf8 I still have the same errors.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#6 2011-07-17 19:21:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error in daemon on locale

theking2 wrote:

I did not reboot, I did restart the service. But with DAEMON_LOCALE=en_US.utf8 I still have the same errors.

I think rc.conf is read at boot, so was it read again after you did your changes?

Edit: Ah, it does say "and during daemon startup". But I think you need to set it to 'yes'.
Edit 2: bernarcher agrees ;P

Last edited by karol (2011-07-17 19:25:51)

Offline

#7 2011-07-17 19:22:12

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: error in daemon on locale

Set DAEMON_LOCALE to "yes" or "no" only as documented in rc.conf:

# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.

And then reboot.
But as this has effects in the boot process only it could as well fail to solve your problem. This probably also depends on how the Perl based application has been compiled and started. Hence you may need to look for more documentation.


To know or not to know ...
... the questions remain forever.

Offline

#8 2011-07-17 19:39:57

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: error in daemon on locale

Thanks bernacher.
Interestingly that commented line did not exist in my rc.conf.
However, after adding

DAEMON_LOCALE="yes"

to /etc/rc.conf the error message went away.
Thanks for your help!

Last edited by theking2 (2011-07-17 19:40:36)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#9 2011-07-17 19:41:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: error in daemon on locale

theking2 wrote:

Thanks bernacher.
Interestingly that commented line did not exist in my rc.conf.

Please check if you have any .pacnew files in your system.

Offline

Board footer

Powered by FluxBB