Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 417951 - [bn_IN] System-config-printer is crashing
Summary: [bn_IN] System-config-printer is crashing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 9
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F10Target
TreeView+ depends on / blocked
 
Reported: 2007-12-10 12:06 UTC by Satyabrata Maitra
Modified: 2008-07-26 06:09 UTC (History)
5 users (show)

Fixed In Version: 0.7.82.3-2.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-17 22:27:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Satyabrata Maitra 2007-12-10 12:06:58 UTC
Description of problem:
in bn_IN locale, system-config-printer is crashing for Fedora8.

Version-Release number of selected component (if applicable):
system-config-printer-0.7.74.4-3.fc8

How reproducible:
Always

Steps to Reproduce:
1. Try to open system-config-printer
2. Observe the result
3.
  
Actual results:
Its crashing

Expected results:
It should not crash and should open the apps

Additional info:

Comment 1 Tim Waugh 2007-12-12 14:00:49 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.

Comment 2 Satyabrata Maitra 2008-01-07 10:30:59 UTC
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.

Comment 3 Tim Waugh 2008-01-07 12:41:41 UTC
What does 'lpstat -s' say?

Comment 4 Jens Petersen 2008-05-01 06:52:53 UTC
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.

Comment 5 Jens Petersen 2008-05-01 06:54:59 UTC
"LANG=bn_IN.UTF-8 system-config-printer" runs for me with pre-F9 anyway,
but not bn_IN.

Comment 6 Tim Waugh 2008-05-01 10:03:41 UTC
Changing component to python.  Reproducer:

LC_ALL=bn_IN python -c 'import locale;locale.setlocale(locale.LC_ALL,
"");locale.getlocale(locale.LC_ALL)'


Comment 7 James Antill 2008-05-01 12:47:47 UTC
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')


Comment 8 Tim Waugh 2008-05-01 15:26:23 UTC
It's throwing ValueError, and from getlocale not setlocale.

Anyway, we now catch this and handle in upstream.

Comment 9 Fedora Update System 2008-05-09 14:47:24 UTC
system-config-printer-0.7.82.3-1.fc9 has been submitted as an update for Fedora 9

Comment 10 Fedora Update System 2008-05-13 15:21:52 UTC
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

Comment 11 Bug Zapper 2008-05-14 04:09:15 UTC
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

Comment 12 Tim Waugh 2008-05-16 09:16:10 UTC
Works for me.

Comment 13 Fedora Update System 2008-05-17 22:27:07 UTC
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.

Comment 14 Fedora Update System 2008-06-06 07:52:44 UTC
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.

Comment 15 Fedora Update System 2008-07-26 06:09:41 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.