Package: bzr Version: 0.7-2 Hi,
my BZREMAIL setting contains a non-ascii character, 'ó'. bzr testament seems to not like this: % bzr testament bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 23: ordinal not in range(128) at /usr/lib/python2.4/site-packages/bzrlib/testament.py line 168 in as_short_text The full backtrace as obtained from ~/.bzr.log is: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 572, in run_bzr_catch_errors return run_bzr(argv) File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 534, in run_bzr ret = cmd_obj.run_argv(argv) File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 233, in run_argv return self.run(**all_cmd_args) File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 544, in ignore_pipe result = func(*args, **kwargs) File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1887, in run sys.stdout.write(t.as_short_text()) File "/usr/lib/python2.4/site-packages/bzrlib/testament.py", line 168, in as_short_text map(s.update, self.as_text_lines()) UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 23: ordinal not in range(128) Attached is a script that reproduces the error. Cheers, -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org One of my most productive days was throwing away 1000 lines of code. -- Ken Thompson
#! /bin/sh export BZREMAIL="[EMAIL PROTECTED]" mkdir test cd test bzr init echo hi >hi.txt bzr add hi.txt bzr ci -m 'Add hi.txt.' bzr testament export BZREMAIL="Foó <[EMAIL PROTECTED]>" echo hi >>hi.txt bzr ci -m 'Add extra hi.' bzr testament