Comment 2 for bug 151968

Revision history for this message
Radim Kolář (hsn10) wrote :

Problem is still here in revno 30, i think time to dig into bzr version command and check how it displays unicode values. because bzr version have no problems with it

bzr arguments: [u'version', u'--xml']
looking for plugins in C:/Documents and Settings/Radim/Data aplikací­/bazaar/2.0/plugins
looking for plugins in D:\Python\lib\site-packages\bzrlib\plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
encoding stdout as bzrlib.user_encoding 'cp1250'
Traceback (most recent call last):
  File "D:\Python\Lib\site-packages\bzrlib\commands.py", line 800, in run_bzr_catch_errors
    return run_bzr(argv)
  File "D:\Python\Lib\site-packages\bzrlib\commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "D:\Python\Lib\site-packages\bzrlib\commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "D:\Python\Lib\site-packages\bzrlib\commands.py", line 768, in ignore_pipe
    result = func(*args, **kwargs)
  File "D:\Python\lib\site-packages\bzrlib\plugins\bzrxml\__init__.py", line 198, in run
    show_version_xml(to_file=self.outf)
  File "D:\Python\lib\site-packages\bzrlib\plugins\bzrxml\versionxml.py", line 21, in show_version_xml
    _show_bazaar_version(to_file)
  File "D:\Python\lib\site-packages\bzrlib\plugins\bzrxml\versionxml.py", line 51, in _show_bazaar_version
    _show_bzr_config(to_file)
  File "D:\Python\lib\site-packages\bzrlib\plugins\bzrxml\versionxml.py", line 83, in _show_bzr_config
    print >>to_file, "<configuration>%s</configuration>" % config_dir
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 59: ordinal not in range(128)