data/rules/hplip_cron only works with english locale
Bug #1054584 reported by
Daniel Pielmeier
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Unassigned | ||
Gentoo Linux |
Fix Released
|
Medium
|
Bug Description
In data/rules/
Changed in gentoo: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in hplip: | |
status: | New → Fix Committed |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
cron logs (error mail) lines like (translated):
/etc/cron. daily/hplip_ cron: line 17: [: -gt: unary operator expected.
when system language is not english.
Reproducible: Always
Steps to Reproduce: daily/hplip_ cron
1. export both LANG and LC_ALL as non-english ('de_DE.UTF8' in my case) in /etc/profile.env
2. have cron execute /etc/cron.
Actual Results:
cron sends email:
/etc/cron. daily/hplip_ cron: line 17: [: -gt: unary operator expected.
Expected Results:
no error message at all
add the following lines:
# make "du" show the result we try to grep for
LANG=C
LC_ALL=C
before line 18 of the cron script.