Activity log for bug #225970

Date Who What changed Old value New value Message
2008-05-03 00:48:34 Robert Nowotniak bug added bug
2008-05-03 00:54:28 Robert Nowotniak description Various scripts in hplip source code are dependent on locale, for e.g. take a look at this demonstration: # LC_ALL=pl_PL hp-check 2>&1 | grep -A 7 QUEUES | INSTALLED CUPS PRINTER QUEUES | --------------------------------- ---------------------- | SANE CONFIGURATION | ---------------------- # _ hp-check found no queues with LC_ALL=pl_PL environment on my system. The same with LC_ALL=C: # LC_ALL=C hp-check 2>&1 | grep -A 6 QUEUES | INSTALLED CUPS PRINTER QUEUES | --------------------------------- F380 ---- Type: Printer # _ At this time ("C" locale) the printer queue was found. Other components of hplip doesn't work on my system neither in non-en_US locales: hp-toolbox doesn't find any HP devices nor does the printing work at all. Above example was tested on hplip 2.8.2, but 2.8.4 source code seems to have the same bugs. For e.g. in check.py (line 503) available printers are filtered using output of `lpstat -v` and the regular expression: lpstat_pat = re.compile(r"""^device for (.*): (.*)""", re.IGNORECASE) In non-en_US locale `lpstat` output starts with localised message instead of "device for", so check.py doesn't find any devices and printing doesn't work at all. Various scripts in hplip source code are dependent on locale, for e.g. take a look at this demonstration: # LC_ALL=pl_PL hp-check 2>&1 | grep -A 7 QUEUES | INSTALLED CUPS PRINTER QUEUES | --------------------------------- ---------------------- | SANE CONFIGURATION | ---------------------- # _ hp-check found no queues with LC_ALL=pl_PL environment on my system. The same with LC_ALL=C: # LC_ALL=C hp-check 2>&1 | grep -A 6 QUEUES | INSTALLED CUPS PRINTER QUEUES | --------------------------------- F380 ---- Type: Printer # _ At this time ("C" locale) the printer queue was found. Other components of hplip doesn't work on my system neither in non-en_US locales: hp-toolbox doesn't find any HP devices nor does the printing work at all. Above example was tested on hplip 2.8.2, but 2.8.4 source code seems to have the same bugs. For e.g. in check.py (line 503) available printers are filtered using output of `lpstat -v` and the regular expression: lpstat_pat = re.compile(r"""^device for (.*): (.*)""", re.IGNORECASE) In non-en_US locale `lpstat` output starts with localised message instead of "device for", so check.py doesn't find any devices and printing doesn't work at all. Maybe all external programs should be executed from hplip in C locale? (Though I'm not sure, if that would suffice to fix this bug).
2008-06-02 12:07:46 Mark Purcell bug assigned to hplip (Debian)
2008-06-02 12:10:22 Bug Watch Updater hplip: status Unknown Confirmed
2009-03-27 18:27:03 Aaron Albright marked as duplicate 162196
2011-06-07 14:34:02 David Levine bug added subscriber David Levine