← Back to team overview

quickshotdevs team mailing list archive

[Bug 554861] Re: Quickshot crashes on unknown locale

 

It`s affects on Serbian language:

quickshot@quickshot-computer:~$ quickshot
** (quickshot:6308): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'
** (quickshot:6308): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'
** (quickshot:6308): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/quickshot", line 673, in <module>
    window = NewQuickshotWindow()
  File "/usr/bin/quickshot", line 636, in NewQuickshotWindow
    window.finish_initializing(builder)
  File "/usr/bin/quickshot", line 140, in finish_initializing
    get("languagelabel").set_text(self.get_active_language()[1])
  File "/usr/bin/quickshot", line 326, in get_active_language
    short_code = locale.getdefaultlocale()[0]
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: sr_RS

-- 
Quickshot crashes on unknown locale
https://bugs.launchpad.net/bugs/554861
You received this bug notification because you are a member of Quickshot
Developers, which is the registrant for Quickshot.

Status in Quickshot - Capturing translated screenshots: Confirmed

Bug description:
If Quickshot doesn't recognize the locale, it crashes when it first starts, but doesn't present a GUI error message to the user.





References