** Description changed:

- Alacarte crashed on quantal, and killed gnome-panel also. A traceback is
- attached.
+ Alacarte crashed on quantal, and killed gnome-panel also (by emptying
+ ~/.config/menus/applications.menu file). A traceback is attached.
  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: alacarte 3.5.5-0ubuntu1
  ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
  Uname: Linux 3.5.0-15-generic i686
  ApportVersion: 2.5.2-0ubuntu4
  Architecture: i386
  Date: Thu Sep 27 19:45:49 2012
  ExecutablePath: /usr/bin/alacarte
  InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
  PythonArgs: ['/usr/bin/alacarte']
  SourcePackage: alacarte
  Title: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec 
can't encode characters in position 307-315: ordinal not in range(128)
  UpgradeStatus: Upgraded to quantal on 2012-09-23 (4 days ago)
  UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev 
nopasswdlogin plugdev sambashare tape video

** Description changed:

- Alacarte crashed on quantal, and killed gnome-panel also (by emptying
- ~/.config/menus/applications.menu file). A traceback is attached.
+ Alacarte crashed on quantal, and killed gnome-panel also. A traceback is
+ attached.
+ 
+ Something like this should fix the problem:
+ 
+ --- a/Alacarte/MenuEditor.py  2012-08-27 07:08:52.000000000 +0400
+ +++ b/Alacarte/MenuEditor.py  2012-09-27 20:09:41.526015518 +0400
+ @@ -49,7 +49,7 @@
+  
+      def save(self):
+          fd = open(self.path, 'w')
+ -        fd.write(self.dom.toprettyxml())
+ +        fd.write(self.dom.toprettyxml().encode('utf-8'))
+          fd.close()
+  
+      def restoreToSystem(self):
  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: alacarte 3.5.5-0ubuntu1
  ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
  Uname: Linux 3.5.0-15-generic i686
  ApportVersion: 2.5.2-0ubuntu4
  Architecture: i386
  Date: Thu Sep 27 19:45:49 2012
  ExecutablePath: /usr/bin/alacarte
  InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
  PythonArgs: ['/usr/bin/alacarte']
  SourcePackage: alacarte
  Title: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec 
can't encode characters in position 307-315: ordinal not in range(128)
  UpgradeStatus: Upgraded to quantal on 2012-09-23 (4 days ago)
  UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev 
nopasswdlogin plugdev sambashare tape video

** Also affects: alacarte
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alacarte in Ubuntu.
https://bugs.launchpad.net/bugs/1057600

Title:
  alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec
  can't encode characters in position 307-315: ordinal not in range(128)

Status in Alacarte Menu Editor:
  New
Status in “alacarte” package in Ubuntu:
  New

Bug description:
  Alacarte crashed on quantal, and killed gnome-panel also. A traceback
  is attached.

  Something like this should fix the problem:

  --- a/Alacarte/MenuEditor.py  2012-08-27 07:08:52.000000000 +0400
  +++ b/Alacarte/MenuEditor.py  2012-09-27 20:09:41.526015518 +0400
  @@ -49,7 +49,7 @@
   
       def save(self):
           fd = open(self.path, 'w')
  -        fd.write(self.dom.toprettyxml())
  +        fd.write(self.dom.toprettyxml().encode('utf-8'))
           fd.close()
   
       def restoreToSystem(self):

  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: alacarte 3.5.5-0ubuntu1
  ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
  Uname: Linux 3.5.0-15-generic i686
  ApportVersion: 2.5.2-0ubuntu4
  Architecture: i386
  Date: Thu Sep 27 19:45:49 2012
  ExecutablePath: /usr/bin/alacarte
  InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
  PythonArgs: ['/usr/bin/alacarte']
  SourcePackage: alacarte
  Title: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec 
can't encode characters in position 307-315: ordinal not in range(128)
  UpgradeStatus: Upgraded to quantal on 2012-09-23 (4 days ago)
  UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev 
nopasswdlogin plugdev sambashare tape video

To manage notifications about this bug go to:
https://bugs.launchpad.net/alacarte/+bug/1057600/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to