bzr fails init/branch with UnicodeDecodeError

Bug #1096968 reported by Geoffrey Sneddon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Undecided
Unassigned
Breezy
Fix Released
Low
Unassigned

Bug Description

This happens running anything. bzr init/branch of any report, including in an empty directory.

Mon 2013-01-07 17:28:56 +0000
0.061 bazaar version: 2.5.1
0.061 bzr arguments: [u'init']
0.069 looking for plugins in /home/gsnedders/.bazaar/plugins
0.069 looking for plugins in /usr/lib/python2.7/site-packages/bzrlib/plugins
0.077 encoding stdout as sys.stdout encoding 'UTF-8'
0.098 creating repository in file:///home/gsnedders/Documents/my-projects/OSS/html5lib/foo/.bzr/.
0.100 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x2755d90> in file:///home/gsnedders/Documents/my-projects/OSS/html5lib/foo/
0.106 trying to create missing lock '/home/gsnedders/Documents/my-projects/OSS/html5lib/foo/.bzr/checkout/dirstate'
0.173 opening working tree '/home/gsnedders/Documents/my-projects/OSS/html5lib/foo'
0.241 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.244 Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1131, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 695, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/builtins.py", line 2111, in run
    force_new_tree=force_new_tree)
  File "/usr/lib/python2.7/site-packages/bzrlib/controldir.py", line 646, in create_branch_convenience
    controldir.create_workingtree()
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 910, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/usr/lib/python2.7/site-packages/bzrlib/workingtree_4.py", line 1549, in initialize
    delta_from_tree=delta_from_tree)
  File "/usr/lib/python2.7/site-packages/bzrlib/transform.py", line 2536, in build_tree
    delta_from_tree)
  File "/usr/lib/python2.7/site-packages/bzrlib/transform.py", line 2641, in _build_tree
    raw_conflicts = resolve_conflicts(tt, pass_func=resolver)
  File "/usr/lib/python2.7/site-packages/bzrlib/transform.py", line 3028, in resolve_conflicts
    pb.update(gettext('Resolution pass'), n+1, 10)
  File "/usr/lib/python2.7/site-packages/bzrlib/lazy_import.py", line 117, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/i18n.py", line 40, in gettext
    install()
  File "/usr/lib/python2.7/site-packages/bzrlib/i18n.py", line 92, in install
    _translations = install_translations(lang)
  File "/usr/lib/python2.7/site-packages/bzrlib/i18n.py", line 114, in install_translations
    fallback=True)
  File "/usr/lib/python2.7/gettext.py", line 465, in translation
    mofiles = find(domain, localedir, languages, all=1)
  File "/usr/lib/python2.7/gettext.py", line 448, in find
    mofile = os.path.join(localedir, lang, 'LC_MESSAGES', '%s.mo' % domain)
  File "/usr/lib/python2.7/posixpath.py", line 71, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)

Bazaar (bzr) 2.5.1
  Python interpreter: /usr/bin/python2 2.7.3
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.6.11-1-ARCH-x86_64-with-glibc2.2.5
  bzrlib: /usr/lib/python2.7/site-packages/bzrlib
  Bazaar configuration: /home/gsnedders/.bazaar
  Bazaar log file: /home/gsnedders/.bzr.log

Tags: unicode
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Can you provide the output of "locale" ?

Changed in bzr:
status: New → Incomplete
Revision history for this message
Geoffrey Sneddon (geoffers) wrote :

Oh, this will be from when I somehow ended up with `export LANGUAGE="$(echo -n -e '\xffen_GB')"` in my environment. No, I don't how.

Jelmer Vernooij (jelmer)
Changed in bzr:
status: Incomplete → Confirmed
Changed in brz:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in brz:
status: Triaged → 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.