bzr-builder has to call .decode on get_maintainer() output

Bug #837741 reported by Michał Zając
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bzr-builder
Fix Released
High
Martin Packman
bzr-builder (Ubuntu)
Fix Released
High
Unassigned

Bug Description

[testbuild]% bzr dailydeb telepathy-kde-approver workdir/ (quintasan@nightwalker:/tmp/testbuild)
Building tree.
Retrieving 'lp:~telepathy-kde/telepathy-kde/master-telepathy-kde-approver' to put at 'workdir/telepathy-kde-approver-0.1.0+20110830-0'.
All changes applied successfully.
Committing to: /tmp/testbuild/workdir/telepathy-kde-approver-0.1.0+20110830-0/
added debian
added debian/changelog
added debian/compat
added debian/control
added debian/copyright
added debian/rules
added debian/source
added debian/source/format
Committed revision 31.
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builder/cmds.py", line 710, in run
    append_version=append_version)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builder/cmds.py", line 270, in add_autobuild_changelog_entry
    cl.write_to_open_file(cl_f)
  File "/usr/lib/pymodules/python2.7/debian/changelog.py", line 505, in write_to_open_file
    file.write(self.__str__())
  File "/usr/lib/pymodules/python2.7/debian/changelog.py", line 470, in __str__
    return unicode(self).encode(self._encoding)
  File "/usr/lib/pymodules/python2.7/debian/changelog.py", line 466, in __unicode__
    pieces.append(unicode(block))
  File "/usr/lib/pymodules/python2.7/debian/changelog.py", line 159, in __unicode__
    + self.date + "\n"
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2011-08-30T19:22.crash
if a bug-reporting window does not automatically appear.

The recipe used is:
# bzr-builder format 0.3 deb-version 0.1.0+{date}-0
lp:~telepathy-kde/telepathy-kde/master-telepathy-kde-approver
nest-part packaging lp:~telepathy-kde/telepathy-kde/telepathy-kde-approver debian debian

python -c 'from bzrlib.plugins.builder.cmds import get_maintainer; print get_maintainer()' yields
('Micha\xc5\x82 Zaj\xc4\x85c', '<email address hidden>')

Related branches

Jelmer Vernooij (jelmer)
Changed in bzr-builder:
status: New → Triaged
importance: Undecided → High
kovax (kovax3)
Changed in bzr-builder:
assignee: nobody → kovax (kovax3)
assignee: kovax (kovax3) → nobody
Martin Packman (gz)
Changed in bzr-builder:
assignee: nobody → Martin Packman (gz)
status: Triaged → In Progress
Martin Packman (gz)
Changed in bzr-builder:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-builder:
milestone: none → 0.7.2
Jelmer Vernooij (jelmer)
Changed in bzr-builder:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-builder (Ubuntu):
status: New → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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