← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 541042] Re: locale is not set up before mythtv-backend start

 

Thank you for the update Eduard.  Did you confirm with the experts in
#upstart that this is the best way to do this (i.e., is not just
currently supported, but is planned to be in the future)?

** Patch added: "mythtv-backend.conf.diff"
   http://launchpadlibrarian.net/41297489/mythtv-backend.conf.diff

-- 
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: Triaged

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