[Bug 911144] Re: apturl-gtk crashed with UnicodeDecodeError in parseArgs(): 'ascii' codec can't decode byte 0xe3 in position 18: ordinal not in range(128)

Jean-Baptiste Lallement jean-baptiste at ubuntu.com
Tue Jan 3 10:51:30 UTC 2012


I've been able to reproduce with the following command:
$ LANG=fr_FR.utf8 apturl-gtk azertyuiop

Gtk-WARNING **: Unknown property: GtkDialog.has-separator
Traceback (most recent call last):
  File "/usr/bin/apturl-gtk", line 48, in <module>
    sys.exit(apturl.main())
  File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 172, in main
    apturl_list = self.parseArgs()
  File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 151, in parseArgs
    "%s" % str(e))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)


** Changed in: apturl (Ubuntu)
   Importance: Undecided => High

** Changed in: apturl (Ubuntu)
       Status: Incomplete => Triaged

** Changed in: apturl (Ubuntu)
     Assignee: (unassigned) => Canonical Foundations Team (canonical-foundations)

** Also affects: apturl (Ubuntu Precise)
   Importance: High
     Assignee: Canonical Foundations Team (canonical-foundations)
       Status: Triaged

** Tags added: rls-mgr-p-tracking

** Description changed:

+ TEST CASE:
+ 0. Install a non-english locale like fr or ja
+ 1. In a terminal run the following command:
+ $ LANG=fr_FR.utf8 apturl-gtk azertyuiop
+ 
+ EXPECTED RESULT:
+ A dialog pops up displaying a localized error message "Invalid url: 'azertyuiop' given, exiting"
+ 
+ ACTUAL RESULT:
+ It crashes with the trace below:
+ 
+ -----
+ Traceback (most recent call last):
+   File "/usr/bin/apturl-gtk", line 48, in <module>
+     sys.exit(apturl.main())
+   File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 172, in main
+     apturl_list = self.parseArgs()
+   File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 151, in parseArgs
+     "%s" % str(e))
+ UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
+ -----
+ 
+ 
+ === Original Description ===
+ 
  I don't know
  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: apturl 0.5.1ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
  Uname: Linux 3.2.0-7-generic i686
  ApportVersion: 1.90-0ubuntu1
  Architecture: i386
  Date: Tue Jan  3 18:50:46 2012
  ExecutablePath: /usr/bin/apturl-gtk
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20111129.1)
  InterpreterPath: /usr/bin/python2.7
  ProcCmdline: /usr/bin/python /usr/bin/apturl-gtk /home/username/ドキュメント/Marble Arena 2/bin/arena_32
  ProcEnviron:
-  PATH=(custom, no user)
-  LANG=ja_JP.UTF-8
-  SHELL=/bin/bash
+  PATH=(custom, no user)
+  LANG=ja_JP.UTF-8
+  SHELL=/bin/bash
  PythonArgs: ['/usr/bin/apturl-gtk', '/home/username/\xe3\x83\x89\xe3\x82\xad\xe3\x83\xa5\xe3\x83\xa1\xe3\x83\xb3\xe3\x83\x88/Marble', 'Arena', '2/bin/arena_32']
  SourcePackage: apturl
  Title: apturl-gtk crashed with UnicodeDecodeError in parseArgs(): 'ascii' codec can't decode byte 0xe3 in position 18: ordinal not in range(128)
  UpgradeStatus: Upgraded to precise on 2012-01-02 (1 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

** Tags added: testcase

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apturl in Ubuntu.
https://bugs.launchpad.net/bugs/911144

Title:
  apturl-gtk crashed with UnicodeDecodeError in parseArgs(): 'ascii'
  codec can't decode byte 0xe3 in position 18: ordinal not in range(128)

Status in “apturl” package in Ubuntu:
  Triaged
Status in “apturl” source package in Precise:
  Triaged

Bug description:
  TEST CASE:
  0. Install a non-english locale like fr or ja
  1. In a terminal run the following command:
  $ LANG=fr_FR.utf8 apturl-gtk azertyuiop

  EXPECTED RESULT:
  A dialog pops up displaying a localized error message "Invalid url: 'azertyuiop' given, exiting"

  ACTUAL RESULT:
  It crashes with the trace below:

  -----
  Traceback (most recent call last):
    File "/usr/bin/apturl-gtk", line 48, in <module>
      sys.exit(apturl.main())
    File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 172, in main
      apturl_list = self.parseArgs()
    File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 151, in parseArgs
      "%s" % str(e))
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
  -----

  
  === Original Description ===

  I don't know

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: apturl 0.5.1ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
  Uname: Linux 3.2.0-7-generic i686
  ApportVersion: 1.90-0ubuntu1
  Architecture: i386
  Date: Tue Jan  3 18:50:46 2012
  ExecutablePath: /usr/bin/apturl-gtk
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20111129.1)
  InterpreterPath: /usr/bin/python2.7
  ProcCmdline: /usr/bin/python /usr/bin/apturl-gtk /home/username/ドキュメント/Marble Arena 2/bin/arena_32
  ProcEnviron:
   PATH=(custom, no user)
   LANG=ja_JP.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/apturl-gtk', '/home/username/\xe3\x83\x89\xe3\x82\xad\xe3\x83\xa5\xe3\x83\xa1\xe3\x83\xb3\xe3\x83\x88/Marble', 'Arena', '2/bin/arena_32']
  SourcePackage: apturl
  Title: apturl-gtk crashed with UnicodeDecodeError in parseArgs(): 'ascii' codec can't decode byte 0xe3 in position 18: ordinal not in range(128)
  UpgradeStatus: Upgraded to precise on 2012-01-02 (1 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apturl/+bug/911144/+subscriptions




More information about the foundations-bugs mailing list