UnicodeDecodeError when processing paths that have the non-ascii characters

Bug #707005 reported by Ivan Faleev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

When processing folder names are contains non-ascii characters Tortoise Bazaar displays an error message :

Run command: bzr add --no-recurse "Новая папка" "Новая папка (2)"
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 20: ordinal not in range(128)

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 912, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1112, in run_bzr
  File "bzrlib\commands.pyo", line 690, in run_argv_aliases
  File "bzrlib\commands.pyo", line 705, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "D:/Program Files/Bazaar/plugins\qbzr\lib\commands.py", line 767, in run
  File "D:/Program Files/Bazaar/plugins\qbzr\lib\subprocess.py", line 888, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1112, in run_bzr
  File "bzrlib\commands.pyo", line 690, in run_argv_aliases
  File "bzrlib\commands.pyo", line 705, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 690, in run
  File "bzrlib\mutabletree.pyo", line 50, in tree_write_locked
  File "bzrlib\mutabletree.pyo", line 421, in smart_add
  File "bzrlib\osutils.pyo", line 500, in normalizepath
  File "bzrlib\osutils.pyo", line 343, in _win32_pathjoin
  File "ntpath.pyo", line 108, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 20: ordinal not in range(128)

bzr 2.2.2 on python 2.6.4 (Windows-post2008Server-6.1.7600)
arguments: ['d:\\Program Files\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l3:add12:--no-recurse21:\xcd\xee\xe2\xe0\xff \xef\xe0\xef\xea\xe025:\xcd\xee\xe2\xe0\xff \xef\xe0\xef\xea\xe0 (2)e']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
  bzrtools D:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
  colo D:\Program Files\Bazaar\plugins\colo [0.1.0]
  difftools D:\Program Files\Bazaar\plugins\difftools [unknown]
  docdiff D:\Program Files\Bazaar\plugins\docdiff [1.0.0dev]
  explorer D:\Program Files\Bazaar\plugins\explorer [1.1.1]
  extmerge D:\Program Files\Bazaar\plugins\extmerge [unknown]
  fastimport D:\Program Files\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad D:\Program Files\Bazaar\plugins\launchpad [2.2.2]
  loom D:\Program Files\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store D:\Program Files\Bazaar\plugins\netrc_credential_store [2.2.2]
  news_merge D:\Program Files\Bazaar\plugins\news_merge [2.2.2]
  pipeline D:\Program Files\Bazaar\plugins\pipeline [unknown]
  qbzr D:\Program Files\Bazaar\plugins\qbzr [0.19.2]
  rewrite D:\Program Files\Bazaar\plugins\rewrite [0.6.1]
  svn D:\Program Files\Bazaar\plugins\svn [1.0.4]
  upload D:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput D:\Program Files\Bazaar\plugins\xmloutput [0.8.6]

---------------------
Bazaar (bzr) 2.2.2
  Python interpreter: d:\Program Files\Bazaar\python26.dll 2.6.4
  Platform: Windows-post2008Server-6.1.7600

Steps to reproduce:
1) Create a folder whose name has the non-ascii-character
2) Browse into the folder
3) Right click and select Bazaar init
4) Click OK and close
5) Create 2 and more folders with non-ascii characters
6) Right click in the folder and select Tortoise Bazaar -> Add
7) Click OK

Revision history for this message
Ivan Faleev (faleeviv) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

This should be fixed if you upgrade to bzr 2.2.3 or 2.3beta.

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

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.