mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #03557
[Bug 541042] Re: locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
thanks Mario!
--
locale is not set up before mythtv-backend start causing problems in mythvideo with accentuated chars
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: Fix Committed
Status in “mythtv” package in Ubuntu: Fix Committed
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?
References