[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)

Launchpad Bug Tracker 911144 at bugs.launchpad.net
Sat Mar 24 12:39:18 UTC 2012


This bug was fixed in the package apturl - 0.5.1ubuntu3

---------------
apturl (0.5.1ubuntu3) precise; urgency=low

  * Take the unicode representation of the parser error message instead
    of the string representation, so that we get clean i18n handling.
    LP: #911144.
 -- Steve Langasek <steve.langasek at ubuntu.com>   Sat, 24 Mar 2012 02:33:27 -0700

** Changed in: apturl (Ubuntu Precise)
       Status: Triaged => Fix Released

-- 
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:
  Fix Released
Status in “apturl” source package in Precise:
  Fix Released

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