Incorrect LPSTAT_PATTERN with french locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The `/usr/share/
The issue is that the lpstat utility, when used with a french locale, adds an extra space in the output before the colon :
```
matériel pour HP_Smart_
matériel pour Smart_Tank_Plus_550 : hp:/net/
```
Hence the discovery of CUPS printers on french-locale (and possibly other locales as well) systems is completely broken.
Fix (HPLIP 3.22.2 on an Ubuntu 20.04 box):
Replace the line 54 of queues.py with:
```
LPSTAT_PATTERN = re.compile(
```
Changed in hplip: | |
status: | New → Confirmed |