bzr bd fails in C locale

Bug #826421 reported by Steve Langasek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builddeb
Triaged
High
Unassigned
bzr-builddeb (Ubuntu)
Triaged
High
Unassigned

Bug Description

bzr bd in oneiric has recently started to fail when run in a C locale (such as in a pristine build chroot). This used to work just fine, now it gives the following error:

$ bzr bd -- -uc -us -B
Building using working tree
Building package in merge mode
Looking for a way to retrieve the upstream tarball
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: 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/builddeb/cmds.py", line 427, in run
    builder.export()
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/builder.py", line 75, in export
    self.distiller.distill(self.target_dir)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/source_distiller.py", line 79, in distill
    self._distill(target)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/source_distiller.py", line 120, in _distill
    tarballs = self.upstream_provider.provide(parent_dir)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/upstream/__init__.py", line 428, in provide
    if self.already_exists_in_store() is None:
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/upstream/__init__.py", line 449, in already_exists_in_store
    return gather_orig_files(self.package, self.version, self.store_dir)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/builddeb/upstream/__init__.py", line 372, in gather_orig_files
    if filename.startswith(prefix):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)

bzr 2.4b5 on python 2.7.2 (Linux-3.0.0-8-generic-x86_64-with-
    Ubuntu-11.10-oneiric)
arguments: ['/usr/bin/bzr', 'bd', '--', '-uc', '-us', '-B']
plugins: bash_completion[2.4b5], builddeb[2.7.0dev], changelog_merge[2.4b5],
    email[unknown], launchpad[2.4b5], netrc_credential_store[2.4b5],
    news_merge[2.4b5], weave_fmt[2.4b5]
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
$

Installing language-pack-en and setting LANG=en_US.UTF-8 is sufficient to clear this error.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: bzr-builddeb 2.7.7
ProcVersionSignature: Ubuntu 3.0.0-8.11-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
Architecture: amd64
Date: Sun Aug 14 12:38:29 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bzr-builddeb
UpgradeStatus: Upgraded to oneiric on 2011-06-27 (48 days ago)

Revision history for this message
Steve Langasek (vorlon) wrote :
Changed in bzr-builddeb (Ubuntu):
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
Changed in bzr-builddeb (Ubuntu):
status: New → Triaged
importance: Medium → High
Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: New → Triaged
importance: Undecided → High
tags: added: regression
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.