group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #07439
[Bug 1605761] Re: Main Menu editor destroys applications menu when processing a non-ASCII character.
This bug was fixed in the package mozo - 1.15.1-0ubuntu1
---------------
mozo (1.15.1-0ubuntu1) yakkety; urgency=medium
* New upstream development release.
-- Martin Wimpress <code@xxxxxxxxxxx> Fri, 09 Sep 2016 13:04:48 +0100
** Changed in: mozo (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1605761
Title:
Main Menu editor destroys applications menu when processing a non-
ASCII character.
Status in ubuntu-mate:
Fix Committed
Status in mozo package in Ubuntu:
Fix Released
Status in mozo source package in Xenial:
Triaged
Bug description:
There is a entry in my applications menu named "Life Is Strange™"
(note the ™ character). When using the Main Menu editor to make
adjustments to the layout of the menus, a serious error occurs while
processing the ™ character and as a result, destroys the entire
~/.config/menus/mate-applications.menu file to 0 kB. Occurs in Ubuntu
MATE 16.04.1.
A workaround is to rename the affecting program's name in a text
editor before using the Main Menu tool.
This is the back trace from mate-panel:
---------------------
/usr/lib/python2.7/dist-packages/Mozo/MenuEditor.py:533: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if node.childNodes[0].nodeName == 'Filename' and node.childNodes[0].childNodes[0].nodeValue == filename:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/Mozo/MainWindow.py", line 430, in on_menu_tree_drag_data_received
self.editor.copyItem(item, new_parent)
File "/usr/lib/python2.7/dist-packages/Mozo/MenuEditor.py", line 298, in copyItem
self.save()
File "/usr/lib/python2.7/dist-packages/Mozo/MenuEditor.py", line 68, 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.7/xml/dom/minidom.py", line 61, in toprettyxml
return writer.getvalue()
File "/usr/lib/python2.7/StringIO.py", line 271, in getvalue
self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 15: ordinal not in range(128)
** (mate-panel:12720): WARNING **: Error loading menu layout from
"/home/luke/.config/menus/mate-applications.menu": Error on line 1
char 1: Document was empty or contained only whitespace
---------------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-mate/+bug/1605761/+subscriptions