1. michael b
  2. fsgamer
  3. Issues
Issue #25 resolved

Unicode breakage

michael b
repo owner created an issue

Another unicode bug :(

I need to comb through everything to make sure it is unicode friendly. I have no idea why i cannot reproduce this however since i already tested with unicode attributes.

This one in particular is "unicode in categories".

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/fsgamer/FsgamerWindow.py", line 113, in add_app_clicked
    self._show_choose_dialog()
  File "/usr/lib/python2.7/dist-packages/fsgamer/FsgamerWindow.py", line 95, in _show_choose_dialog
    self.choose_dialog = self.ChooseDialog() # pylint: disable=E1102
  File "/usr/lib/python2.7/dist-packages/fsgamer/ChooseDialog.py", line 38, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/fsgamer/ChooseDialog.py", line 54, in finish_initializing
    self.populate_desktop_entry_list()
  File "/usr/lib/python2.7/dist-packages/fsgamer/ChooseDialog.py", line 70, in populate_desktop_entry_list
    self.app_list = self.app_list.filter_games()
  File "/usr/lib/python2.7/dist-packages/fsgamer/xdg_wrapper.py", line 91, in filter_games
    return DesktopEntryList(filter(game_filter, self))
  File "/usr/lib/python2.7/dist-packages/fsgamer/xdg_wrapper.py", line 89, in game_filter
    l = map(str.lower, item.getCategories())
TypeError: descriptor 'lower' requires a 'str' object but received a 'unicode'

Comments (5)

  1. Log in to comment