UnicodeDecodeError in mv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I attempted to move a directory but apparently a file was locked and it triggered an error. The issue is that the error was in French with CP1252 characters (French accents) and Python was confused as the code page on the console is CP850 (I think, to be double checked...).
Here is what I got:
E:\Dev\
> bzr version
Bazaar (bzr) 2.0.0
Python interpreter: C:\PrgCmdLine\
Python standard library: C:\PrgCmdLine\
Platform: Windows-
bzrlib: C:\PrgCmdLine\
> md IO
> bzr add
adding _QuickExperimen
adding _QuickExperimen
adding _QuickExperimen
> bzr co -m "Shows how to save and load binary data"
Committing to: E:/Dev/
added _QuickExperimen
added _QuickExperimen
added _QuickExperimen
Committed revision 83.
> bzr mv SaveAndLoadArray IO/.
bzr: ERROR: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_
In .bzr.log:
jeu. 2010-01-14 15:06:54 +0100
0.140 bzr arguments: [u'mv', u'SaveAndLoadAr
0.171 looking for plugins in E:/Dev/
0.250 looking for plugins in C:/PrgCmdLine/
0.406 encoding stdout as sys.stdout encoding 'cp850'
0.484 opening working tree 'E:/Dev/
0.546 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
BzrMoveFailedError: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_
tags: | added: mv |
tags: | added: unicode |
summary: |
- Bazaar crashing on a French Windows system + UnicodeDecodeError in mv |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
PhiLho wrote: PhiLhoSoft\ Processing\ _QuickExperimen ts Bazaar\ python25. dll 2.5.4 Bazaar\ lib\library. zip XP-5.1. 2600-SP3 Bazaar\ lib\library. zip\bzrlib ts/IO ts/SaveAndLoadA rray ts/SaveAndLoadA rray/SaveAndLoa dArray. pde PhiLhoSoft/ Processing/ ts/IO ts/SaveAndLoadA rray ts/SaveAndLoadA rray/SaveAndLoa dArray. pde string' : None, 'from_path': u'SaveAndLoadAr ray', 'to_path': u'SaveAndLoadAr ray', 'extra': ': Le processus ne peut pas acc\xe9der au fichier car ce fichier est utilis\xe9 par un autre processus'}, fmt='Could not move %(from_ path)s% (operator) s %(to_path) s%(extra) s', error=UnicodeDe codeError( 'ascii' , ':Le processus ne peut pas acc\xe9der au fichier car ce fichier est utilis\xe9 par un autre processus', 30, 31, 'ordinal not in range(128)') ray', u'IO/.'] PhiLhoSoft/ settings/ bazaar/ 2.0/plugins Bazaar/ plugins PhiLhoSoft/ Processing' commands. pyo", line 842, in exception_ to_return_ code commands. pyo", line 1037, in run_bzr commands. pyo", line 654, in run_argv_aliases builtins. pyo", line 808, in run builtins. pyo", line 851, in _run mutabletree. pyo", line 52, in tree_write_locked workingtree_ 4.pyo", line 754, in move string' : None, 'from_path': u'SaveAndLoadAr ray', 'to_path': u'SaveAndLoadAr ray', 'extra': ': Le processus ne peut pas acc\xe9der au fichier car ce fichier est utilis\xe9 par un autre processus'}, fmt='Could not move %(from_ path)s% (operator) s %(to_path) s%(extra) s', error=UnicodeDe codeError( 'ascii' , ': Le processus ne peut pas acc\xe9der au fichier car ce fichier est utilis\xe9 par un autre processus', 30, 31, 'ordinal not in range(128)')
> Public bug reported:
>
> I attempted to move a directory but apparently a file was locked and it triggered an error. The issue is that the error was in French with CP1252 characters (French accents) and Python was confused as the code page on the console is CP850 (I think, to be double checked...).
> Here is what I got:
>
> E:\Dev\
>> bzr version
> Bazaar (bzr) 2.0.0
> Python interpreter: C:\PrgCmdLine\
> Python standard library: C:\PrgCmdLine\
> Platform: Windows-
> bzrlib: C:\PrgCmdLine\
>
>> md IO
>
>> bzr add
> adding _QuickExperimen
> adding _QuickExperimen
> adding _QuickExperimen
>
>> bzr co -m "Shows how to save and load binary data"
> Committing to: E:/Dev/
> added _QuickExperimen
> added _QuickExperimen
> added _QuickExperimen
> Committed revision 83.
>
>> bzr mv SaveAndLoadArray IO/.
> bzr: ERROR: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_
>
> In .bzr.log:
>
> jeu. 2010-01-14 15:06:54 +0100
> 0.140 bzr arguments: [u'mv', u'SaveAndLoadAr
> 0.171 looking for plugins in E:/Dev/
> 0.250 looking for plugins in C:/PrgCmdLine/
> 0.406 encoding stdout as sys.stdout encoding 'cp850'
> 0.484 opening working tree 'E:/Dev/
> 0.546 Traceback (most recent call last):
> File "bzrlib\
> File "bzrlib\
> File "bzrlib\
> File "bzrlib\
> File "bzrlib\
> File "bzrlib\
> File "bzrlib\
> BzrMoveFailedError: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>
status: confirmed
importance: medium
tags: unicode
I t...