bzr add * fails with non-ascii file names.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Kuno Meyer |
Bug Description
Hello,
This bug report comes from a Windows XP SP2 English version but configured to Spanish locale.
Bazaar (bzr) 0.18.0
If you have a file with non-ascii characters on its file name, something like:
áéíóúÁÉÍÓÚñÑçC.txt
and you try to execute the add command like this:
bzr add *
fails with:
bzr arguments: [u'add', u'*']
looking for plugins in C:/Documents and Settings/
looking for plugins in C:\WinApps\
Looking for plugins in 'C:\\WinApps\
Names in archive: ['__init__.pyc', 'launchpad/
Load plugin launchpad from zip 'C:\\WinApps\
encoding stdout as sys.stdout encoding 'cp850'
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 0: ordinal not in range(128)
return code 3
But if you execute the add command like this, it works:
bzr add
or
bzr add .
or
bzr add áéíóúÁÉÍÓÚñÑçC.txt
bzr arguments: [u'add', u'\xe1\
looking for plugins in C:/Documents and Settings/
looking for plugins in C:\WinApps\
Looking for plugins in 'C:\\WinApps\
Names in archive: ['__init__.pyc', 'launchpad/
Load plugin launchpad from zip 'C:\\WinApps\
encoding stdout as sys.stdout encoding 'cp850'
opening working tree 'C:/_mario/
return code 0
Besr regards,
Mario
Confirm this bug. bzr fails even with
bzr add *.txt
I think it's related to win32utils. glob_expand( ) function. It should return list of unicode filenames, but it seems that instead it returns plain strings. May be it's the bug in glob.glob()?