Bug 132948
| Summary: | r-c-p utility and cups service have been broken started in non-english locales | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Andy Shevchenko <andy> | ||||
| Component: | redhat-config-printer | Assignee: | Tim Waugh <twaugh> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.0 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2006-02-21 19:05:43 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 104009 [details]
quick fix of described problem
The alternatives call are discovered at three files:
- printconf_conf.py
- queueTree.py
- cups_import.py
*** This bug has been marked as a duplicate of 131563 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
Description of problem: redhat-config-printer utility has broken call of alternatives tool. [root@localhost root]# locale LANG=ru_RU.CP1251 LC_CTYPE="ru_RU.CP1251" LC_NUMERIC="ru_RU.CP1251" LC_TIME="ru_RU.CP1251" LC_COLLATE="ru_RU.CP1251" LC_MONETARY="ru_RU.CP1251" LC_MESSAGES="ru_RU.CP1251" LC_PAPER="ru_RU.CP1251" LC_NAME="ru_RU.CP1251" LC_ADDRESS="ru_RU.CP1251" LC_TELEPHONE="ru_RU.CP1251" LC_MEASUREMENT="ru_RU.CP1251" LC_IDENTIFICATION="ru_RU.CP1251" LC_ALL= [root@localhost root]# redhat-config-printer Traceback (most recent call last): File "/usr/sbin/redhat-config-printer", line 9, in ? debug1: channel 1: FORCE input drain import queueTree File "/usr/share/printconf/util/queueTree.py", line 945, in ? queueTree() File "/usr/share/printconf/util/queueTree.py", line 102, in __init__ if cups_import.import_needed (): File "/usr/share/printconf/util/cups_import.py", line 200, in import_needed which = which_spooler () File "/usr/share/printconf/util/cups_import.py", line 195, in which_spooler return which UnboundLocalError: local variable 'which' referenced before assignment Version-Release number of selected component (if applicable): [root@localhost root]# rpm -q redhat-config-printer redhat-config-printer-0.6.47.3.19-1 How reproducible: Only try to start it. Expected results: Properly work. Additional info: I propose to write 'LC_MESSAGES=C /usr/sbin/alternatives ...' into /usr/share/printconf/util/cups_import.py as quick fix.