Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530690 - media-tv/gentoo-vdr-scripts with sys-apps/systemd - vdr-systemd_helper.sh fails to set locale
Summary: media-tv/gentoo-vdr-scripts with sys-apps/systemd - vdr-systemd_helper.sh fa...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-25 21:33 UTC by dieter ferdinand
Modified: 2018-09-02 23:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dieter ferdinand 2014-11-25 21:33:02 UTC
hello,
i try to set locale for vdr to german, but this don't work.

i analyze the problem and found, that the env-variable, which sets the locale is not set for vdr.

i append some lines after this line:
        echo "VDR_OPTS=\"${vdr_opts}\"" > ${SYSTEMD_ENV_FILE}
new lines:
        echo "LANG=$LANG" >> ${SYSTEMD_ENV_FILE}
        echo "LC_ALL=$LANG" >> ${SYSTEMD_ENV_FILE}

after this update of this script, i can change the language to german.

goodby

Reproducible: Always
Comment 1 Joerg Bornkessel (RETIRED) gentoo-dev 2014-11-28 00:33:56 UTC
This depends also on openrc start scripts,

i found out, somewhere in the past was missing the
/usr/share/vdr/capabilities.sh

i am not shure yet, is it an error in the gentoo-vdr-scripts or some major changes in the core vdr...
Comment 2 Joerg Bornkessel (RETIRED) gentoo-dev 2015-01-01 17:45:29 UTC
gentoo-vdr-scripts-2.5 released on 2015/01/01

fixed this issue
---

let me add some comments to use LC_ALL from several localisation howto's

"Warning
Using LC_ALL is strongly discouraged as it can't be overridden later on. Please use it only when testing and never set it in a startup file."

or in german

"Warnung: Vom Gebrauch von LC_ALL wird energisch abgeraten, da diese Variable später nicht einfach überschrieben werden kann. Bitte benutzen Sie es nur zum Testen und setzen Sie es niemals in einer Startdatei."

anyway,
i am added LC_ALL part #commented to the script for your personal use only,
feel free to us it, or let it #commented and report it here, if it will still works without override of LC_ALL
I will remove it then on next public release

Thx for reporting and help out
Comment 3 Pacho Ramos gentoo-dev 2015-09-07 18:28:13 UTC
could this be closed finally then? Thanks