[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2013-10-06 Thread Dmitry Shachnev
Fixed in ≥ 3.7.90.

** Changed in: alacarte
   Status: Fix Committed = Fix Released

** Changed in: alacarte (Ubuntu)
   Status: Triaged = Fix Released

-- 
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:
  Fix Released
Status in “alacarte” package in Ubuntu:
  Fix Released

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.0 +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


[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2012-11-16 Thread Jasper St. Pierre
Pushed a more comprehensive fix to git master. Thanks! Not sure what
flags I'm supposed to set in Launchpad.

-- 
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:
  Confirmed

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.0 +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


[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2012-11-16 Thread Dmitry Shachnev
Thank you! There was another crash caused by this one (for me) — bug
1057603, I guess it can now be marked as Fix Committed too?

** Changed in: alacarte
   Status: New = Fix Committed

** Changed in: alacarte (Ubuntu)
   Status: Confirmed = Triaged

-- 
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:
  Fix Committed
Status in “alacarte” package in Ubuntu:
  Triaged

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.0 +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


[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2012-10-14 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: alacarte (Ubuntu)
   Status: New = Confirmed

-- 
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:
  Confirmed

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.0 +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


[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2012-09-27 Thread Dmitry Shachnev
** Visibility changed to: Public

-- 
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” package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/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


[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2012-09-27 Thread Apport retracing service
** Tags removed: need-duplicate-check

** Changed in: alacarte (Ubuntu)
   Importance: Undecided = Medium

-- 
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” package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/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


[Desktop-packages] [Bug 1057600] Re: alacarte crashed with UnicodeEncodeError in save(): 'ascii' codec can't encode characters in position 307-315: ordinal not in range(128)

2012-09-27 Thread Dmitry Shachnev
** 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.0 +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.0 +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