[BUG] bzr 0.8 add on Unicode filename fails

John Whitley whitley at acm.org
Mon May 8 22:33:01 BST 2006


[FYI, I already entered the following into Malone as bug 43689; I'm  
copying it here for discussion.. -J]

Platforms: Cygwin and Mac OS X 10.4.6 (PowerPC)
bzr version: 0.8 release

Repro steps:
1) bzr init test
2) cd test
3) touch file.txt
4) Use Windows Explorer / Finder to rename file.txt to REQUÊTE.TXT
5) bzr add .

Cygwin results:
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode  
byte 0xca in position 5: ordinal not in range(128)
   at /tmp/python.572/usr/lib/python2.4/posixpath.py line 65
   in join

Mac OS X results:
added bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't  
encode character u'\u0302' in position 6: ordinal not in range(128)
   at /usr/local/lib/bzr-0.8/bzrlib/add.py line 61
   in add_action_print

Note that the way the unicode name was generated on each system was  
slightly different -- the Cygwin version was from a file we have in  
CVS, while I manually retyped the version on Mac OS X using option-i  
E to get 'Ê' on a US keyboard.


-- John






More information about the bazaar mailing list