Bazaar Version Control System

Comment 5 for bug 966934

OK, revert affected too:

C:\work\Bazaar\plugins\qbzr\po>bzr revert
 M po/qbzr-ru.po
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters in position 16-24: ordinal not in range(128)

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 4780, in run
  File "bzrlib\builtins.pyo", line 4786, in _revert_tree_to_revision
  File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
  File "bzrlib\workingtree.pyo", line 1332, in revert
  File "bzrlib\transform.pyo", line 2863, in revert
  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 16-24: ordinal not in range(128)

bzr 2.5.0 on python 2.6.6 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'revert']
plugins: acad[0.8.0], bzrtools[2.5.0], colo[0.3.1dev], explorer[1.3.0dev],
    fastimport[0.14.0dev], find_branches[unknown], format1[unknown],
    git[0.6.7], launchpad[2.5.0], qbzr[0.22.2dev], rewrite[0.6.4dev],
    scmproj[0.6.2dev], svn[1.2.1], tiplog[0.0.5dev], undelete[0.2.0],
    x_bit[1.0.0]
encoding: 'cp1251', fsenc: 'mbcs', 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.

It seems all commands that works with working tree are affected.