filename with unicode characters : ERROR: exceptions.UnicodeEncodeError

Bug #56947 reported by Mildred
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
John A Meinel

Bug Description

Just try the following command :

$ bzr add ngöndro.moon
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 50: ordinal not in range(128)
  at /usr/lib/python2.4/site-packages/bzrlib/trace.py line 102
  in mutter

-----

Obviously, it is the 'ö' character that can't be encoded in ascii somewhere ...

$ bzr --version
bzr (bazaar-ng) 0.8.2

Revision history for this message
John A Meinel (jameinel) wrote :

This should have been fixed already in bzr-0.9.
Is it possible to update to either bzr.dev or bzr-0.9 and let us know if this has been fixed?

Changed in bzr:
importance: Untriaged → Medium
status: Unconfirmed → Needs Info
Revision history for this message
Alexander Belchenko (bialix) wrote :

upgrade to bzr 0.9, please

Revision history for this message
John A Meinel (jameinel) wrote :

Haven't heard anything, so I'm assuming this is fixed in bzr-0.9 by the encoding changes.

Changed in bzr:
assignee: nobody → jameinel
status: Needs Info → Fix Released
Revision history for this message
Pablo Pernot (pablo-pernot) wrote :

Humm I'm using Bazaar 2.0 ...
bzr --version
Bazaar (bzr) 2.0.0
  Python interpreter: /usr/bin/python 2.6.4
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.31-14-generic-i686-with-Ubuntu-9.10-karmic
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/pablo/.bazaar
  Bazaar log file: /home/pablo/.bzr.log

and I'm confronted to quite the same bug :

bzr init
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 5: ordinal not in range(128)

I add the crash file as attachment?field.comment=Humm I'm using Bazaar 2.0 ...
bzr --version
Bazaar (bzr) 2.0.0
  Python interpreter: /usr/bin/python 2.6.4
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.31-14-generic-i686-with-Ubuntu-9.10-karmic
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/pablo/.bazaar
  Bazaar log file: /home/pablo/.bzr.log

and I'm confronted to quite the same bug :

bzr init
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 5: ordinal not in range(128)

I add the crash file as attachment

Revision history for this message
Richard Bukovansky (richard-bukovansky) wrote :

Hi, I'm trying to run Bzr on my Snow Leopard, but I'm getting this error when I try to commit with files using Czech characters.

$ touch ěčšěšíčáěšéíčěšč.txt
$ bzr status
unknown:
  ěčšěšíčáěšéíčěšč.txt

$ bzr add ěčšěšíčáěšéíčěšč.txt
adding "ěčšěšíčáěšéíčěšč.txt"

$ bzr commit -m "Adding unicode filename"
Committing to: /Users/beecher/Projects/Bazaar/
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py", line 765, in emit
    self.stream.write(fs % msg.encode("UTF-8"))
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 8: ordinal not in range(128)
aborting commit write group: PointlessCommit(No changes to commit)
bzr: ERROR: No changes to commit. Use --unchanged to commit anyhow.

$ bzr --version
Bazaar (bzr) 2.1.0b4
  Python interpreter: /usr/bin/python 2.6.1
  Python standard library: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
  Platform: Darwin-10.2.0-i386-64bit
  bzrlib: /Library/Python/2.6/site-packages/bzrlib
  Bazaar configuration: /Users/beecher/.bazaar
  Bazaar log file: /Users/beecher/.bzr.log

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

@Richard, that is bug 172383

@Pablo,

   File "/usr/lib/python2.6/dist-packages/bzrlib/osutils.py", line 1392, in walkdirs
     names = sorted(_listdir(top))
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 5: ordinal not in range(128)

that's bug 488519

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.