[submittodebian] crashed with UnicodeDecodeError in check_file(): 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)

Bug #836661 reported by Julian Taylor
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Medium
Stefano Rivera

Bug Description

the issue is the non-ascii characters in this line of code:

  File "/usr/bin/submittodebian", line 107, in check_file
    print "Couldn't find «%s».\n" % fname

to reproduce:
apt-get source desktopnova
cd desktopnova-0.8
submittodebian

making the string unicode or simply removing the «» solve the issue

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: ubuntu-dev-tools 0.127
ProcVersionSignature: Ubuntu 3.0.0-9.14-generic 3.0.3
Uname: Linux 3.0.0-9-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Mon Aug 29 15:11:17 2011
ExecutablePath: /usr/bin/submittodebian
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110805)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/submittodebian
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
PythonArgs: ['/usr/bin/submittodebian']
SourcePackage: ubuntu-dev-tools
Title: submittodebian crashed with UnicodeDecodeError in check_file(): 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare sbuild

Revision history for this message
Julian Taylor (jtaylor) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Julian Taylor (jtaylor)
description: updated
Benjamin Drung (bdrung)
summary: - submittodebian crashed with UnicodeDecodeError in check_file(): 'ascii'
- codec can't decode byte 0xc2 in position 2: ordinal not in range(128)
+ [submittodebian] crashed with UnicodeDecodeError in check_file():
+ 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in
+ range(128)
Benjamin Drung (bdrung)
Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Medium
Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Stefano Rivera (stefanor)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.129

---------------
ubuntu-dev-tools (0.129) unstable; urgency=low

  [ Colin Watson ]
  * syncpackage: Convert to new LP API, with --no-lp available for the old
    style of operation.
  * syncpackage: Require -f/--force option to overwrite Ubuntu changes.

  [ Jelmer Vernooij ]
  * Remove several tools not specific to Ubuntu that have been migrated to
    lptools (LP: #708886):
   - get-branches (renamed to lp-get-branches)
   - grab-attachments (renamed to lp-grab-attachments)
   - lp-project-upload
   - lp-list-bugs
   - lp-set-dup
   - lp-shell

  [ Stefano Rivera ]
  * syncpackage: Show changes to be synced when performing native syncs.
  * syncpackage: Check the sync blacklist.
  * syncpackage: Support --bug (extra bugs to be closed by the sync) with
    native syncs. (Bugs are closed one individually, via the API, post-sync)
  * dgetlp, submittodebian, 404main: Use unicode strings for literal strings
    containing non-ASCII characters (LP: #836661)
  * Recommend pbuilder | aptitude for get-build-deps, and exit with an error
    if neither are installed (LP: #799368)
  * get-build-deps: Tell aptitude not to follow Recommends (LP: #817500)
  * doc/requestsync.1: Document the -C option (LP: #833408)
  * ubuntutools.archive: Don't write .dsc files until we pull the entire
    source package, just hold it in memory. Avoids littering the current
    directory (LP: #838361)
  * Run harvest as part of sponsor-patch (LP: #833699)

  [ Julian Taylor ]
  * requestsync: omit dups when checking for duplicate requests (LP: #842217)

  [ Benjamin Drung ]
  * sponsor-patch: Default to not upload the package.
  * requestsync: Do not crash on user abort (Closes: #637168).

 -- Benjamin Drung <email address hidden> Tue, 06 Sep 2011 14:31:31 +0200

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.