Crash when comitting with non-English description
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Triaged
|
Low
|
Unassigned |
Bug Description
I was comitting changes to a project branch and told bazaar to load the revision's description from a file with the '-F' argument. The file contains Unicode text with some non-English characters and bazaar crashed, giving the following traceback:
(bazaar on Mac OS X 10.4 Tiger, installed using MacPorts)
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/opt/local/
return run_bzr(argv)
File "/opt/local/
ret = run(*run_argv)
File "/opt/local/
return self.run(
File "/opt/local/
author=author)
File "/opt/local/
return unbound(self, *args, **kwargs)
File "/opt/local/
result = WorkingTree3.
File "/opt/local/
return unbound(self, *args, **kwargs)
File "/opt/local/
revprops=
File "/opt/local/
message = message_
File "/opt/local/
bzrlib.
File "/opt/local/
return self.reader.
File "/opt/local/
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in range(128)
bzr 1.0.0 on python 2.5.1.final.0 (darwin)
arguments: ['/opt/
encoding: 'US-ASCII', fsenc: 'utf-8', lang: None
plugins:
bzrtools /opt/local/
launchpad /opt/local/
multiparent /opt/local/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
tags: |
added: commit encoding unicode removed: characters crash description non-english revision |
Try:
LANG=en_US.UTF-8 bzr commit -F cambios.txt
(or whatever the right environment variable would be on OS X)
This isn't really a bzr bug. You gave it a UTF-8 commit message, but the system's charset is ASCII. It should give a more friendly error message, of course. Maybe that's been improved in more recent versions; 1.0 is a little old.