UnicodeEncodeError when launching editor to merge after local commit and update

Bug #48307 reported by Dato Simó
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
John A Meinel
bzr (Debian)
Fix Released
Unknown

Bug Description

Hello,

if `bzr whoami` contains non-ASCII characters, an exception will be raised when trying to merge from a bounded branch to its parent. After bzr update, bzr commit will die with:

bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 117: ordinal not in range(128)
at /usr/lib/python2.4/site-packages/bzrlib/msgeditor.py line 99
in edit_commit_message

Note, however, that it works fine if the commit log is specified in the command line via the -m option.

A script to reproduce this bug can be found here: http://chistera.yi.org/~adeodato/tmp/2006-06-04//bzr-bug.sh

I'm using bzr 0.8.2-3 from Debian unstable.

Thanks.

Dato Simó (dato)
description: updated
Revision history for this message
Dato Simó (dato) wrote : Patch

Hi.

Seems like this was fixed back in December, but only made trunk
recently:

    merged: <email address hidden>
    committer: John Arbash Meinel <email address hidden>
    branch nick: bzr-encoding
    timestamp: Sat 2005-12-24 13:55:19 -0600
    message:
      [patch] from Ivan Vilata i Balaguer: infotext should be encoded from unicode to flat strings

Can this be considered for the next 0.8.x release?

Revision history for this message
Dato Simó (dato) wrote :

Fixed in <email address hidden>.

Changed in bzr:
status: Unconfirmed → Fix Committed
status: Unconfirmed → Unknown
Changed in bzr:
status: Unknown → Confirmed
John A Meinel (jameinel)
Changed in bzr:
assignee: nobody → jameinel
status: Fix Committed → Fix Released
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.