Seems like alacarte has some problems when trying to edit menu points
with non utf-8 chars. I tried installing an application via wine. This
created a menu entry with unreadable chars. After trying to delete this
entry via alacarte my menu is empty as described by the other people in
this bug report.

The actual traceback of alacarte is as follow:

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/Alacarte/MainWindow.py", line 435, in 
on_item_tree_show_toggled
    self.editor.setVisible(item, False)
  File "/usr/lib/python2.6/dist-packages/Alacarte/MenuEditor.py", line 217, in 
setVisible
    self.save()
  File "/usr/lib/python2.6/dist-packages/Alacarte/MenuEditor.py", line 64, in 
save
    fd.write(re.sub("\n[\s]*([^\n<]*)\n[\s]*</", "\\1</", getattr(self, 
menu).dom.toprettyxml().replace('<?xml version="1.0" ?>\n', '')))
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 60, in toprettyxml
    return writer.getvalue()
  File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 92-93: invalid 
data
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/Alacarte/MainWindow.py", line 435, in 
on_item_tree_show_toggled
    self.editor.setVisible(item, False)
  File "/usr/lib/python2.6/dist-packages/Alacarte/MenuEditor.py", line 217, in 
setVisible
    self.save()
  File "/usr/lib/python2.6/dist-packages/Alacarte/MenuEditor.py", line 64, in 
save
    fd.write(re.sub("\n[\s]*([^\n<]*)\n[\s]*</", "\\1</", getattr(self, 
menu).dom.toprettyxml().replace('<?xml version="1.0" ?>\n', '')))
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 60, in toprettyxml
    return writer.getvalue()
  File "/usr/lib/python2.6/StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 92-93: invalid 
data

-- 
Alacarte emptied my Applications menu list.
https://bugs.launchpad.net/bugs/61340
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to