Comment 0 for bug 1966686

Revision history for this message
Florian Bruhin (the-compiler) wrote :

After a "bzr branch lp:mailman/2.1" and "cd 2.1", a "bzr annotate messages/LC_MESSAGES/mailman.po" leads to:

brz: ERROR: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdc in position 11: invalid continuation byte

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 1017, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 1206, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 757, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 782, in run
    return class_run(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/breezy/commands.py", line 1223, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/breezy/builtins.py", line 5301, in run
    annotate_file_tree(wt, relpath, self.outf, long, all,
  File "/usr/lib/python3.10/site-packages/breezy/annotate.py", line 95, in annotate_file_tree
    _print_annotations(annotation, verbose, to_file, full, encoding)
  File "/usr/lib/python3.10/site-packages/breezy/annotate.py", line 130, in _print_annotations
    to_file.write('| %s\n' % (text.decode(encoding),))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdc in position 11: invalid continuation byte

brz 3.2.1 on python 3.10.2 (Linux-5.16.12-arch1-1-x86_64-with-glibc2.35)
arguments: ['/usr/bin/bzr', 'annotate', 'messages/de/LC_MESSAGES/mailman.po']
plugins: bash_completion[3.2.1], changelog_merge[3.2.1],
    commitfromnews[3.2.1], cvs[3.2.1], darcs[3.2.1], email[3.2.1],
    fastimport[3.2.1], flake8[unknown], fossil[3.2.1], github[3.2.1],
    gitlab[3.2.1], hg[3.2.1], launchpad[3.2.1], mtn[3.2.1],
    netrc_credential_store[3.2.1], news_merge[3.2.1], po_merge[3.2.1],
    propose[3.2.1], pypi[3.2.1], quilt[unknown], repodebug[3.2.1],
    rewrite[unknown], stats[3.2.1], svn[3.2.1], upload[3.2.1],
    weave_fmt[3.2.1], zsh_completion[3.2.1]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'

*** 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/brz/+filebug
    including this traceback and a description of the problem.
1576.1.16 mirian@ %