[Bug 966934] Re: [i18n] bzr commands affected working tree crashed with unicode error in non-english locale

Hans Ginzel hans at matfyz.cz
Tue Feb 4 10:29:18 UTC 2014


This bug is not fixed.

bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode
character u'\u011f' in position 79: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/cmds.py", line 694, in run
    return exporter.run()
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/exporter.py", line 238, in run
    self.emit_commit(revid, self.ref)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/exporter.py", line 356, in emit_commit
    self.print_cmd(self._get_commit_command(ref, mark, revobj, file_cmds))
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/exporter.py", line 285, in print_cmd
    self.outf.write("%r\n" % cmd)
  File "/usr/lib/python2.7/dist-packages/fastimport/commands.py", line 140, in __repr__
    return self.to_string(include_file_contents=True)
  File "/usr/lib/python2.7/dist-packages/fastimport/commands.py", line 188, in to_string
    for c in self.iter_files()])
UnicodeEncodeError: 'ascii' codec can't encode character u'\u011f' in position 79: ordinal not in range(128)
# locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ALL=

Package: bzr
Version: 2.6.0-3ubuntu1

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/966934

Title:
  [i18n] bzr commands affected working tree  crashed with unicode error
  in non-english locale

Status in Bazaar Version Control System:
  Fix Released
Status in Bazaar 2.5 series:
  Fix Released
Status in “bzr” package in Ubuntu:
  Fix Released
Status in “bzr” source package in Precise:
  Fix Released

Bug description:
  bzr 2.5.0-2 standalone with localization enabled, ru locale. Trying to
  pull latest changes from lp:qbzr got the following traceback:

  
  Wed 2012-03-28 11:34:20 +0300
  0.547  bazaar version: 2.5.0
  0.547  bzr arguments: [u'pull']
  0.562  looking for plugins in C:\work\Bazaar\plugins
  0.750  looking for plugins in C:/Program Files/Bazaar/plugins
  0.765  Plugin name colo already loaded
  0.781  Plugin name explorer already loaded
  0.797  Plugin name qbzr already loaded
  1.093  encoding stdout as sys.stdout encoding 'cp866'
  1.468  opening working tree 'C:/work/Bazaar/plugins/qbzr'
  3.328  falling back to default implementation
  3.328  failed to load system host keys: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\modul98/.ssh/known_hosts'
  [ 3972] 2012-03-28 11:34:24.500 INFO: Connected (version 2.0, client Twisted)
  4.547  Trying SSH agent key 69DE0146E3CD769AE60602F7192D0EB5
  [ 3972] 2012-03-28 11:34:25.765 INFO: Authentication (publickey) successful!
  [ 3972] 2012-03-28 11:34:25.953 INFO: Secsh channel 1 opened.
  11.312  Using fetch logic to copy between RemoteRepository(bzr+ssh://bazaar.launchpad.net/~qbzr-dev/qbzr/trunk2a/.bzr/)(RemoteRepositoryFormat(_network_name='Bazaar repository format 2a (needs bzr 1.16 or later)\n')) and CHKInventoryRepository('file:///C:/work/Bazaar/plugins/qbzr/.bzr/branches/.bzr/repository/')(RepositoryFormat2a())
  11.312  fetching: <SearchResult search:(set(['iwata0303 at gmail.com-20120327204836-erba96kr378d8yeb']), ['iwata0303 at gmail.com-20120221130318-hhchdisrer1bao3b', 'bialix at ukr.net-20120227110113-r76b7nqh19omt1in', 'iwata0303 at gmail.com-20120227204337-hsdbx1e81un7jnb7', 'bialix at ukr.net-20120229141315-jdrsf28wo0ue4k39', 'bialix at ukr.net-20120229140020-e7kkbf5zrh2tsib7', ...], 13)>
  14.640  tiplog: recorded pull on iwata0303 at gmail.com-20120327204836-erba96kr378d8yeb
  [ 3972] 2012-03-28 11:34:36.765 INFO:  M  NEWS.txt
  [ 3972] 2012-03-28 11:34:36.765 INFO:  M  lib/conflicts.py
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  lib/subprocess.py
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  lib/widgets/shelve.py
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-ar.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-cs.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-da.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-de.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-en.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-en_GB.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-es.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-et.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-fr.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-gl.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-he.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-hu.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-it.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-ja.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-nl.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-pl.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-pt_BR.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-ru.po
  [ 3972] 2012-03-28 11:34:36.780 INFO:  M  po/qbzr-sk.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr-sl.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr-sr.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr-sv.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr-th.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr-tr.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr-uk.po
  [ 3972] 2012-03-28 11:34:36.796 INFO:  M  po/qbzr.pot
  16.297  Transferred: 314kB (29.1kB/s r:311kB w:3kB)
  16.297  Traceback (most recent call last):
    File "bzrlib\commands.pyo", line 920, in exception_to_return_code
    File "bzrlib\commands.pyo", line 1131, in run_bzr
    File "bzrlib\commands.pyo", line 673, in run_argv_aliases
    File "bzrlib\commands.pyo", line 695, in run
    File "bzrlib\cleanup.pyo", line 136, in run_simple
    File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
    File "bzrlib\builtins.pyo", line 1221, in run
    File "bzrlib\decorators.pyo", line 218, in write_locked
    File "bzrlib\workingtree.pyo", line 1008, in pull
    File "bzrlib\merge.pyo", line 2021, in merge_inner
    File "bzrlib\merge.pyo", line 686, in do_merge
    File "bzrlib\cleanup.pyo", line 136, in run_simple
    File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
    File "bzrlib\merge.pyo", line 654, in _do_merge_to
    File "bzrlib\merge.pyo", line 802, in do_merge
    File "bzrlib\cleanup.pyo", line 132, in run
    File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
    File "bzrlib\merge.pyo", line 808, in _do_merge
    File "bzrlib\transform.pyo", line 1734, in apply
    File "bzrlib\progress.pyo", line 116, in update
    File "bzrlib\ui\text.pyo", line 374, in _progress_updated
    File "bzrlib\ui\text.pyo", line 554, in show_progress
    File "bzrlib\ui\text.pyo", line 536, in _repaint
    File "bzrlib\ui\text.pyo", line 440, in _show_line
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 22-30: ordinal not in range(128)

  Although pull into treeless branch works without problems:

  C:\work\Bazaar\plugins\qbzr>bzr pull -d colo:0.22
  Используется сохранённое местоположение родителя: bzr+ssh://bazaar.launchpad.net/%2Bbranch/qbzr/0.22/
  Connected (version 2.0, client Twisted)
  Authentication (publickey) successful!
  Secsh channel 1 opened.
  Now on revision 1470.

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/966934/+subscriptions



More information about the foundations-bugs mailing list