utils.py attempts to access unknown locale.format attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
HP Linux Imaging and Printing System (ver. 3.23.8)
Scan Utility ver. 2.2
Fedora 39
This command, with an area br-x (third value) of 86 mm or less:
$ hp-scan --area=0,0,86,100 --file=test.pdf
Results in this traceback:
Closing device.
Traceback (most recent call last):
File "/bin/hp-scan", line 1353, in <module>
utils.
^^^
File "/usr/share/
return ''.join(
File "/usr/share/
return locale.format("%s", val, grouping=True)
AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'?
Oddly, increasing the third (br-x) value in the area to 87 or more resolves the issue.
Changing "locale.format" to "locale._format" here also resolves the issue, but I am not sure if it is correct:
/usr/share/
477c477
< return locale.
---
> return locale.format("%s", val, grouping=True)
description: | updated |
HP Linux Imaging and Printing System (ver. 3.23.12)
Scan Utility ver. 2.2
Fedora 39
I get the same error when I specify --resolution.