UnicodeDecodeError when writing message to terminal

Bug #295653 reported by divinekid
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Unassigned

Bug Description

When bzr showing a message with non-ascii chararcters to the terminal, for example:

[ 5797] 2008-11-09 01:29:18.128 INFO: deleted 中文测试

this appears correctly in ~/.bzr.log, but on the terminal screen, a exception raised instead of the message:

Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 765, in emit
    self.stream.write(fs % msg.encode("UTF-8"))
  File "/usr/lib/python2.6/codecs.py", line 351, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 8: ordinal not in range(128)

I'm using bzr 1.9 with Python 2.6.

Tags: encoding
Jelmer Vernooij (jelmer)
Changed in bzr:
importance: Undecided → Medium
status: New → Triaged
tags: added: encoding
Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I believe this particular bug no longer exists.

Changed in bzr:
status: Confirmed → Fix Released
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.