UnicodeDecodeError exceptions during commit

Bug #397562 reported by Jean-Francois Roy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

During a commit which modified a file with non-ASCII characters in its filename, Bazaar threw UnicodeDecodeErrors (and handled them apparently, since the commit proceeded to completion).

Here's the backtrace for one of those exceptions:

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 0xc2 in position 24: ordinal not in range(128)

The filename in question had a µ (micro) character.

This occurred on Mac OS X with Bazaar 1.16.1. Below is my complete environment:

$ printenv
MANPATH=/opt/local/share/man:/usr/local/man:/usr/local/share/man:
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
CLICOLOR=1
TMPDIR=/var/folders/XA/XAjVJSQ7G3m7UEbl3kdIo++++TI/-Tmp-/
Apple_PubSub_Socket_Render=/tmp/launch-3PiUVs/Render
TERM_PROGRAM_VERSION=271
USER=bahamut
COMMAND_MODE=unix2003
SSH_AUTH_SOCK=/tmp/launch-tkQ7XA/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:
LSCOLORS=GxFxCxDxBxegedabagacad
PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PWD=<redacted path to some bazaar branch>
LANG=en_US.UTF-8
SHLVL=1
HOME=/Volumes/Crossroads/bahamut
ITK_PDB=1
LOGNAME=bahamut
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:
INFOPATH=/opt/local/share/info:
DISPLAY=/tmp/launch-NG7Toe/:0
GL_ENABLE_DEBUG_ATTACH=YES
_=/usr/bin/printenv

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.