[BUG] UTF-8 commit message fails.
Jean-François Veillette
jean_francois_veillette at yahoo.ca
Sun Oct 8 15:11:59 BST 2006
I tried to commit a unicoded message (UTF-8). To do so, I did :
09:58:14: export EDITOR=/Applications/TextEdit.app/Contents/MacOS/
TextEdit
I did that because I still do not know how to enter accented
characters in emacs, or anything in the Terminal.
10:02:46: bzr commit Sources/
I saved a copy here, so you can see what it's complaining about :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Failed_bzr_log.szBaeY
Type: application/octet-stream
Size: 301 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061008/dfa43839/attachment.obj
-------------- next part --------------
This is what I got :
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode
byte 0xc3 in position 3: ordinal not in range(128)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/bzrlib/commands.py", line 611, in
run_bzr_catch_errors
return run_bzr(argv)
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/bzrlib/commands.py", line 573, in run_bzr
ret = run(*run_argv)
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/bzrlib/commands.py", line 282, in
run_argv_aliases
return self.run(**all_cmd_args)
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/bzrlib/builtins.py", line 1777, in run
message = edit_commit_message(template)
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/bzrlib/msgeditor.py", line 114, in
edit_commit_message
for line in codecs.open(msgfilename, 'r', bzrlib.user_encoding):
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/codecs.py", line 491, in next
return self.reader.next()
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/codecs.py", line 428, in next
line = self.readline()
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/codecs.py", line 343, in readline
data = self.read(readsize, firstline=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/codecs.py", line 290, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
3: ordinal not in range(128)
bzr 0.11.0 on python 2.4.2.final.0 (darwin)
arguments: ['/usr/local/bin/bzr', 'commit', 'Sources/']
** please send this report to bazaar-ng at lists.ubuntu.com
- jfv
More information about the bazaar
mailing list