[Pkg-bazaar-maint] Bug#703183: fails when commiter's name contains non-ascii characters

Piotr Ożarowski piotr at debian.org
Sat Mar 16 14:14:01 UTC 2013


Package: python-bzrlib
Version: 2.6.0~bzr6571-4
Severity: normal
File: /usr/lib/python2.7/dist-packages/bzrlib/repository.py
Tags: patch

happened while trying to push (via git's remote bzr helper) a commit that had "ż" in
commit author's name:

Traceback (most recent call last):ions
  File "/home/piotr/.local/bin/git-remote-bzr", line 725, in <module>
    sys.exit(main(sys.argv))
  File "/home/piotr/.local/bin/git-remote-bzr", line 718, in main
    do_export(parser)
  File "/home/piotr/.local/bin/git-remote-bzr", line 601, in do_export
    parse_commit(parser)
  File "/home/piotr/.local/bin/git-remote-bzr", line 558, in parse_commit
    builder = repo.get_commit_builder(parents, None, date, tz, committer, props, revid)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 734, in get_commit_builder
    lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1306, in get_commit_builder
    lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/pack_repo.py", line 110, in __init__
    lossy=lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 117, in __init__
    revision_id, lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/repository.py", line 104, in __init__
    self._committer = committer.decode() # throw if non-ascii
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 7: ordinal not in range(128)


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-bzrlib depends on:
ii  libc6             2.13-38
ii  python            2.7.3-4
ii  python-configobj  4.7.2+ds-4

Versions of packages python-bzrlib recommends:
ii  ca-certificates      20130119
ii  python-launchpadlib  1.9.12-2
ii  python-paramiko      1.7.7.1-3.1

Versions of packages python-bzrlib suggests:
pn  python-bzrlib-dbg    <none>
pn  python-bzrlib.tests  <none>
pn  python-gpgme         <none>
pn  python-kerberos      <none>
ii  python-pycurl        7.19.0-5
ii  xdg-utils            1.1.0~rc1+git20111210-7

-- debconf-show failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repository_utf8.patch
Type: text/x-diff
Size: 494 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-bazaar-maint/attachments/20130316/5e34a67e/attachment.patch>


More information about the Pkg-bazaar-maint mailing list