UnicodeDecodeError in mv

Bug #507535 reported by PhiLho
8
This bug affects 1 person
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\PhiLhoSoft\Processing\_QuickExperiments
> bzr version
Bazaar (bzr) 2.0.0
  Python interpreter: C:\PrgCmdLine\Bazaar\python25.dll 2.5.4
  Python standard library: C:\PrgCmdLine\Bazaar\lib\library.zip
  Platform: Windows-XP-5.1.2600-SP3
  bzrlib: C:\PrgCmdLine\Bazaar\lib\library.zip\bzrlib

> md IO

> bzr add
adding _QuickExperiments/IO
adding _QuickExperiments/SaveAndLoadArray
adding _QuickExperiments/SaveAndLoadArray/SaveAndLoadArray.pde

> bzr co -m "Shows how to save and load binary data"
Committing to: E:/Dev/PhiLhoSoft/Processing/
added _QuickExperiments/IO
added _QuickExperiments/SaveAndLoadArray
added _QuickExperiments/SaveAndLoadArray/SaveAndLoadArray.pde
Committed revision 83.

> bzr mv SaveAndLoadArray IO/.
bzr: ERROR: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_string': None, 'from_path': u'SaveAndLoadArray', 'to_path': u'SaveAndLoadArray', '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=UnicodeDecodeError('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)')

In .bzr.log:

jeu. 2010-01-14 15:06:54 +0100
0.140 bzr arguments: [u'mv', u'SaveAndLoadArray', u'IO/.']
0.171 looking for plugins in E:/Dev/PhiLhoSoft/settings/bazaar/2.0/plugins
0.250 looking for plugins in C:/PrgCmdLine/Bazaar/plugins
0.406 encoding stdout as sys.stdout encoding 'cp850'
0.484 opening working tree 'E:/Dev/PhiLhoSoft/Processing'
0.546 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 842, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1037, in run_bzr
  File "bzrlib\commands.pyo", line 654, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 808, in run
  File "bzrlib\builtins.pyo", line 851, in _run
  File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
  File "bzrlib\workingtree_4.pyo", line 754, in move
BzrMoveFailedError: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_string': None, 'from_path': u'SaveAndLoadArray', 'to_path': u'SaveAndLoadArray', '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=UnicodeDecodeError('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)')

Tags: mv unicode
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 507535] [NEW] Bazaar crashing on a French Windows system
Download full text (4.0 KiB)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

PhiLho wrote:
> 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\PhiLhoSoft\Processing\_QuickExperiments
>> bzr version
> Bazaar (bzr) 2.0.0
> Python interpreter: C:\PrgCmdLine\Bazaar\python25.dll 2.5.4
> Python standard library: C:\PrgCmdLine\Bazaar\lib\library.zip
> Platform: Windows-XP-5.1.2600-SP3
> bzrlib: C:\PrgCmdLine\Bazaar\lib\library.zip\bzrlib
>
>> md IO
>
>> bzr add
> adding _QuickExperiments/IO
> adding _QuickExperiments/SaveAndLoadArray
> adding _QuickExperiments/SaveAndLoadArray/SaveAndLoadArray.pde
>
>> bzr co -m "Shows how to save and load binary data"
> Committing to: E:/Dev/PhiLhoSoft/Processing/
> added _QuickExperiments/IO
> added _QuickExperiments/SaveAndLoadArray
> added _QuickExperiments/SaveAndLoadArray/SaveAndLoadArray.pde
> Committed revision 83.
>
>> bzr mv SaveAndLoadArray IO/.
> bzr: ERROR: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_string': None, 'from_path': u'SaveAndLoadArray', 'to_path': u'SaveAndLoadArray', '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=UnicodeDecodeError('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)')
>
> In .bzr.log:
>
> jeu. 2010-01-14 15:06:54 +0100
> 0.140 bzr arguments: [u'mv', u'SaveAndLoadArray', u'IO/.']
> 0.171 looking for plugins in E:/Dev/PhiLhoSoft/settings/bazaar/2.0/plugins
> 0.250 looking for plugins in C:/PrgCmdLine/Bazaar/plugins
> 0.406 encoding stdout as sys.stdout encoding 'cp850'
> 0.484 opening working tree 'E:/Dev/PhiLhoSoft/Processing'
> 0.546 Traceback (most recent call last):
> File "bzrlib\commands.pyo", line 842, in exception_to_return_code
> File "bzrlib\commands.pyo", line 1037, in run_bzr
> File "bzrlib\commands.pyo", line 654, in run_argv_aliases
> File "bzrlib\builtins.pyo", line 808, in run
> File "bzrlib\builtins.pyo", line 851, in _run
> File "bzrlib\mutabletree.pyo", line 52, in tree_write_locked
> File "bzrlib\workingtree_4.pyo", line 754, in move
> BzrMoveFailedError: Unprintable exception BzrMoveFailedError: dict={'operator': ' =>', '_preformatted_string': None, 'from_path': u'SaveAndLoadArray', 'to_path': u'SaveAndLoadArray', '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=UnicodeDecodeError('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)')
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>

 status: confirmed
 importance: medium
 tags: unicode

I t...

Read more...

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: mv
Martin Pool (mbp)
tags: added: unicode
summary: - Bazaar crashing on a French Windows system
+ UnicodeDecodeError in mv
Revision history for this message
Martin Packman (gz) wrote :

Coalescing related bugs into one for fixing.

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

Other bug subscribers

Remote bug watches

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