hplip_cron should do `export LANG=C' before command run
Bug #1056576 reported by
Vladimir
This bug report is a duplicate of:
Bug #1054584: data/rules/hplip_cron only works with english locale.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
The `hplip_cron' script should do `export LANG=C' before to run any command. For example this line
USAGE=`du -c $LOG_DIR 2>/dev/null |grep total |cut -d't' -f1`
will retuns nothing if LANG not C (my current locale is ru_RU.UTF8) and following
while [ $USAGE -gt $MAXSIZE ]; do
will cause the error
/etc/
translation: unary operator expected.
My system:
Archlinux x86_64,
init:
systemd,
/etc/locale.conf:
LANG=ru_RU.UTF-8
LC_COLLATE=C
LOCALE=
To post a comment you must log in.