Package: singularity
Version: 0.30c-1
Severity: normal

--- Please enter the report below this line. ---

While scrolling the list of saved games, the game crashes on the display of a name containing a non-ascii character like é with the following log:

Traceback (most recent call last):
  File "/usr/share/games/singularity/code/safety.py", line 58, in safe_call
    return func(*args, **kwargs)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 200, in show
    result = self.handle(event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 327, in handle
    return self.call_handlers(handlers, event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 339, in call_handlers
    handler(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 111, in handle_event
    self.activate_with_sound(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 124, in activate_with_sound
    self.activated(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 153, in activated
    self.function(*self.args, **self.kwargs)
File "/usr/share/games/singularity/code/screens/map.py", line 266, in show_menu
    exit = dialog.call_dialog(self.menu_dialog, self)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 94, in call_dialog
    retval = dialog.show()
File "/usr/share/games/singularity/code/graphics/dialog.py", line 200, in show
    result = self.handle(event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 327, in handle
    return self.call_handlers(handlers, event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 339, in call_handlers
    handler(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 111, in handle_event
    self.activate_with_sound(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 124, in activate_with_sound
    self.activated(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 153, in activated
    self.function(*self.args, **self.kwargs)
File "/usr/share/games/singularity/code/screens/map.py", line 607, in load_game
    index = dialog.call_dialog(self.load_dialog, self.menu_dialog)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 94, in call_dialog
    retval = dialog.show()
File "/usr/share/games/singularity/code/graphics/dialog.py", line 591, in show
    return super(ChoiceDialog, self).show()
File "/usr/share/games/singularity/code/graphics/dialog.py", line 197, in show
    Dialog.top.maybe_update()
File "/usr/share/games/singularity/code/graphics/widget.py", line 303, in maybe_update
    self.update()
File "/usr/share/games/singularity/code/graphics/widget.py", line 307, in update
    self.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 290, in prepare_for_redraw
    self.resize()
File "/usr/share/games/singularity/code/graphics/widget.py", line 359, in resize
    self._real_size = self._calc_size()
File "/usr/share/games/singularity/code/graphics/text.py", line 345, in _calc_size
    text_size, font = self.calc_text_size(base_size)
File "/usr/share/games/singularity/code/graphics/text.py", line 336, in calc_text_size
    return initial_dimensions, self.pick_font(initial_dimensions)
File "/usr/share/games/singularity/code/graphics/text.py", line 226, in pick_font
    nice_size = self.pick_font_size(dimensions, False)
File "/usr/share/games/singularity/code/graphics/text.py", line 286, in pick_font_size
    return self.font_bisect(test_size)
File "/usr/share/games/singularity/code/graphics/text.py", line 251, in font_bisect
    return do_bisect(left, right, test_size)
File "/usr/share/games/singularity/code/graphics/text.py", line 34, in do_bisect
    if test(test_index):
File "/usr/share/games/singularity/code/graphics/text.py", line 246, in test_size
    result = test_font(font)
File "/usr/share/games/singularity/code/graphics/text.py", line 268, in test_size
    break_words)
File "/usr/share/games/singularity/code/graphics/text.py", line 70, in split_wrap
    lines.append(raw_line + u"\uFEFF")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

Traceback (most recent call last):
  File "singularity.py", line 1, in <module>
    import code.singularity
File "/usr/share/games/singularity/code/singularity.py", line 226, in <module>
    menu_screen.show()
File "/usr/share/games/singularity/code/graphics/dialog.py", line 200, in show
    result = self.handle(event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 327, in handle
    return self.call_handlers(handlers, event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 339, in call_handlers
    handler(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 111, in handle_event
    self.activate_with_sound(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 124, in activate_with_sound
    self.activated(event)
File "/usr/share/games/singularity/code/graphics/button.py", line 153, in activated
    self.function(*self.args, **self.kwargs)
File "/usr/share/games/singularity/code/screens/main_menu.py", line 100, in load_game
    dialog.call_dialog(self.map_screen, self)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 94, in call_dialog
    retval = dialog.show()
File "/usr/share/games/singularity/code/screens/map.py", line 467, in show
    exit = dialog.call_dialog(self.menu_dialog, self)
File "/usr/share/games/singularity/code/graphics/dialog.py", line 94, in call_dialog
    retval = dialog.show()
File "/usr/share/games/singularity/code/graphics/dialog.py", line 186, in show
    Dialog.top.maybe_update()
File "/usr/share/games/singularity/code/graphics/widget.py", line 303, in maybe_update
    self.update()
File "/usr/share/games/singularity/code/graphics/widget.py", line 307, in update
    self.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in prepare_for_redraw
    child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 290, in prepare_for_redraw
    self.resize()
File "/usr/share/games/singularity/code/graphics/widget.py", line 359, in resize
    self._real_size = self._calc_size()
File "/usr/share/games/singularity/code/graphics/text.py", line 345, in _calc_size
    text_size, font = self.calc_text_size(base_size)
File "/usr/share/games/singularity/code/graphics/text.py", line 336, in calc_text_size
    return initial_dimensions, self.pick_font(initial_dimensions)
File "/usr/share/games/singularity/code/graphics/text.py", line 226, in pick_font
    nice_size = self.pick_font_size(dimensions, False)
File "/usr/share/games/singularity/code/graphics/text.py", line 286, in pick_font_size
    return self.font_bisect(test_size)
File "/usr/share/games/singularity/code/graphics/text.py", line 251, in font_bisect
    return do_bisect(left, right, test_size)
File "/usr/share/games/singularity/code/graphics/text.py", line 34, in do_bisect
    if test(test_index):
File "/usr/share/games/singularity/code/graphics/text.py", line 246, in test_size
    result = test_font(font)
File "/usr/share/games/singularity/code/graphics/text.py", line 268, in test_size
    break_words)
File "/usr/share/games/singularity/code/graphics/text.py", line 70, in split_wrap
    lines.append(raw_line + u"\uFEFF")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

--- System information. ---
Architecture: amd64
Kernel: Linux 3.2.0-4-amd64

Debian Release: 7.1
500 wheezy-backports mozilla.debian.net
500 stable-updates ftp.fr.debian.org
500 stable security.debian.org
500 stable ftp.fr.debian.org
500 proposed-updates ftp.fr.debian.org
100 wheezy-backports ftp.fr.debian.org

--- Package information. ---
Depends (Version) | Installed
==============================-+-===========
python-pygame | 1.9.1release+dfsg-8
ttf-dejavu-core | 2.33-3
python-numpy | 1:1.6.2-1.2


Recommends (Version) | Installed
================================-+-===========
singularity-music | 006-2


Suggests (Version) | Installed
=======================-+-===========
timidity |


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to