mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #00910
[Bug 541042] [NEW] locale is not set up before mythtv-backend start
Public bug reported:
Spotted that in 10.04, the locale is not set before mythtv-backend is
started. This prevents mythtv-backend to find any file with non-ascii
characters in the filename or the path (for example:
/var/lib/mythtv/videos/Komödie/Dinner for one.avi is not found).
While starting mythbuntu-backend, the locale is POSIX. I modified "/etc/init/mythtv-backend.conf" for debug purpose:
#############################################
# MythTV Backend service
description "MythTV Backend"
author "Mario Limonciello <superm1@xxxxxxxxxx>"
start on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown
#expect fork
respawn
script
USER=mythtv
ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
locale >/tmp/mythbackendboot.log
test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
LANG=de_CH.utf8 /usr/bin/mythbackend $ARGS
end script
############################################
Result:
############################################
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
############################################
Adding LC_ALL=de_CH.utf8 LANG=de_CH.utf8 in front of /usr/bin/mythtv-
backend does the trick, then everything works just perfect....
Where is locale supposed to be set up in this whole upstart-process?
** Affects: mythbuntu
Importance: Undecided
Status: New
--
locale is not set up before mythtv-backend start
https://bugs.launchpad.net/bugs/541042
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
Status in Mythbuntu, Ubuntu derivative focused upon MythTV: New
Bug description:
Spotted that in 10.04, the locale is not set before mythtv-backend is started. This prevents mythtv-backend to find any file with non-ascii characters in the filename or the path (for example: /var/lib/mythtv/videos/Komödie/Dinner for one.avi is not found).
While starting mythbuntu-backend, the locale is POSIX. I modified "/etc/init/mythtv-backend.conf" for debug purpose:
#############################################
# MythTV Backend service
description "MythTV Backend"
author "Mario Limonciello <superm1@xxxxxxxxxx>"
start on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown
#expect fork
respawn
script
USER=mythtv
ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
locale >/tmp/mythbackendboot.log
test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
LANG=de_CH.utf8 /usr/bin/mythbackend $ARGS
end script
############################################
Result:
############################################
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
############################################
Adding LC_ALL=de_CH.utf8 LANG=de_CH.utf8 in front of /usr/bin/mythtv-backend does the trick, then everything works just perfect....
Where is locale supposed to be set up in this whole upstart-process?
Follow ups
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Mario Limonciello, 2010-11-20
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Launchpad Bug Tracker, 2010-11-20
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Brian Murray, 2010-11-14
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Eduard Iten, 2010-11-13
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Nico, 2010-11-11
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Mario Limonciello, 2010-11-11
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Mario Limonciello, 2010-11-11
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Launchpad Bug Tracker, 2010-11-11
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Nico, 2010-11-11
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: Nico, 2010-04-08
-
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
From: MarcRandolph, 2010-04-08
-
[Bug 541042] Re: locale is not set up before mythtv-backend start
From: MarcRandolph, 2010-04-07
-
[Bug 541042] Re: locale is not set up before mythtv-backend start
From: Eduard Iten, 2010-03-26
-
[Bug 541042] Re: locale is not set up before mythtv-backend start
From: MarcRandolph, 2010-03-19
-
[Bug 541042] Re: locale is not set up before mythtv-backend start
From: Eduard Iten, 2010-03-19
-
[Bug 541042] Re: locale is not set up before mythtv-backend start
From: MarcRandolph, 2010-03-18
-
[Bug 541042] [NEW] locale is not set up before mythtv-backend start
From: Eduard Iten, 2010-03-18
References