bzr crashes with any command with LANG=ru_RU.UTF-8

Bug #1862740 reported by Ilya Bizyaev on 2020-02-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Unless I export LANG=C or LANG=en_US.UTF-8, even bzr --help crashes with the following stack trace:

bzr: ERROR: exceptions.TypeError: first argument must be string or compiled pattern

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 673, in run_argv_aliases
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 4852, in run
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 54, in help
  File "/usr/lib64/python2.7/site-packages/bzrlib/help_topics/", line 895, in get_help_text
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 92, in install
    _translations = install_translations(lang)
  File "/usr/lib64/python2.7/site-packages/bzrlib/", line 114, in install_translations
  File "/usr/lib64/python2.7/", line 560, in translation
    t = _translations.setdefault(key, class_(fp))
  File "/usr/lib64/python2.7/", line 256, in __init__
  File "/usr/lib64/python2.7/", line 393, in _parse
    self.plural = c2py(plural)
  File "/usr/lib64/python2.7/", line 178, in c2py
    result, nexttok = _parse(_tokenize(plural))
  File "/usr/lib64/python2.7/", line 115, in _parse
    nexttok = next(tokens)
  File "/usr/lib64/python2.7/", line 86, in _tokenize
    for mo in re.finditer(_token_pattern, plural):
  File "/usr/lib64/python2.7/", line 190, in finditer
    return _compile(pattern, flags).finditer(string)
  File "/usr/lib64/python2.7/", line 247, in _compile
    raise TypeError, "first argument must be string or compiled pattern"
TypeError: first argument must be string or compiled pattern

bzr 2.7.0 on python 2.7.14 (Linux-5.3.18-lp152.21.gec10475-default-x86_64
arguments: ['/usr/bin/bzr', '--help']
plugins: bash_completion[2.7.0], changelog_merge[2.7.0], grep[2.7.0],
    launchpad[2.7.0], netrc_credential_store[2.7.0], news_merge[2.7.0],
    po_merge[2.7.0], weave_fmt[2.7.0]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'ru_RU.UTF-8'

openSUSE 15.1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers