Bug 417951
Summary: | [bn_IN] System-config-printer is crashing | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Satyabrata Maitra <smaitra> |
Component: | system-config-printer | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 9 | CC: | aalam, eng-i18n-bugs, katzj, llim, runab |
Target Milestone: | --- | Keywords: | i18n |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 0.7.82.3-2.fc9 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-05-17 22:27:21 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: | |||
Bug Depends On: | |||
Bug Blocks: | 438944 |
Description
Satyabrata Maitra
2007-12-10 12:06:58 UTC
Do you mean this?: $ LC_ALL=bn_IN system-config-printer Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 3769, in <module> main(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 3742, in main mainwindow = GUI(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 109, in __init__ self.language = locale.getlocale(locale.LC_MESSAGES) File "/usr/lib64/python2.5/locale.py", line 460, in getlocale return _parse_localename(localename) File "/usr/lib64/python2.5/locale.py", line 373, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: bn_IN or something else? It is very helpful to show exactly what 'locale' says, and also to include any traceback messages you see in ~/.xsession-errors. I got the following errors.... The first one when I run the command.. LC_ALL=bn_IN system-config-printer The error was... Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 3744, in <module> main(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 3717, in main mainwindow = GUI(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 105, in __init__ self.language = locale.getlocale(locale.LC_MESSAGES) File "/usr/lib/python2.5/locale.py", line 460, in getlocale return _parse_localename(localename) File "/usr/lib/python2.5/locale.py", line 373, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: bn_IN And 2nd is when I run the command... # system-config-printer The error was.. Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 3744, in <module> main(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 3717, in main mainwindow = GUI(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 480, in __init__ self.populateList(start_printer, change_ppd) File "/usr/share/system-config-printer/system-config-printer.py", line 730, in populateList self.on_tvMainList_cursor_changed(self.tvMainList) File "/usr/share/system-config-printer/system-config-printer.py", line 1561, in on_tvMainList_cursor_changed self.fillPrinterTab(name) File "/usr/share/system-config-printer/system-config-printer.py", line 1724, in fillPrinterTab option.reinit (value, supported=supported) File "/usr/share/system-config-printer/options.py", line 119, in reinit self.set_widget_value (self.original_value) File "/usr/share/system-config-printer/options.py", line 143, in set_widget_value index = self.combobox_map.index (ipp_value) ValueError: list.index(x): x not in list So, are both the same errors? Anyway, if any other info required, pls inform. What does 'lpstat -s' say? Why are you using bn_IN and not bn_IN.UTF-8? Of course the program shouldn't crash because of an invalid or unknown locale. "LANG=bn_IN.UTF-8 system-config-printer" runs for me with pre-F9 anyway, but not bn_IN. Changing component to python. Reproducer: LC_ALL=bn_IN python -c 'import locale;locale.setlocale(locale.LC_ALL, "");locale.getlocale(locale.LC_ALL)' Err, unless I'm missing something this isn't a "crash" python is just throwing an exception because it can't find a particular locale ... so what? In yum we do this: try: locale.setlocale(locale.LC_ALL, '') except locale.Error, e: # default to C locale if we get a failure. print >> sys.stderr, 'Failed to set locale, defaulting to C' os.environ['LC_ALL'] = 'C' locale.setlocale(locale.LC_ALL, 'C') It's throwing ValueError, and from getlocale not setlocale. Anyway, we now catch this and handle in upstream. system-config-printer-0.7.82.3-1.fc9 has been submitted as an update for Fedora 9 system-config-printer-0.7.82.3-2.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-printer'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-3820 Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Works for me. system-config-printer-0.7.82.3-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. system-config-printer-0.7.74.13-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. system-config-printer-0.7.82.3-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. |