Re: Umlaut "ä" in the commit log message leads to the following error

Erik Bågfors zindar at gmail.com
Fri Nov 9 15:58:39 GMT 2007


I'm guessing your emacs is not set to save in utf8, but your  
environment is set to it. I've used åäö a lot in commit messages  
without problems.


/Erik

Sent from my iPhone

On 2007 nov 8, at 12.45, my_spam at gmx.de wrote:

> Dear Sir or Madam,
>
> Using an Umlaut "ä" in the log message leads to the following error  
> when
> commiting the changes.
>
> I am running Ubuntu Gutsy. I used '$ bzr commit' from the command line
> which opened emacs21 ...
>
> Hope this helps.
>
> Please, do not hesitate to email me if you need further information.
>
> Yours sincerely,
>
> Daniel Schmitt
>
>
> --- 
> --------------------------------------------------------------------
> bzr: ERROR: exceptions.UnicodeDecodeError: 'utf8' codec can't decode
> bytes in position 17-19: invalid data
>
> Traceback (most recent call last):
>  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 817,
> in run_bzr_catch_errors
>    return run_bzr(argv)
>  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 779,
> in run_bzr
>    ret = run(*run_argv)
>  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 477,
> in run_argv_aliases
>    return self.run(**all_cmd_args)
>  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line  
> 2283,
> in run
>    reporter=reporter, revprops=properties)
>  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line
> 165, in write_locked
>    return unbound(self, *args, **kwargs)
>  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line
> 207, in commit
>    revprops=revprops, *args, **kwargs)
>  File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 311,  
> in
> commit
>    message = message_callback(self)
>  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line  
> 2260,
> in get_message
>    my_message = edit_commit_message(template)
>  File "/usr/lib/python2.5/site-packages/bzrlib/msgeditor.py", line  
> 116,
> in edit_commit_message
>    for line in codecs.getreader(bzrlib.user_encoding)(f):
>  File "codecs.py", line 562, in next
>    line = self.readline()
>  File "codecs.py", line 477, in readline
>    data = self.read(readsize, firstline=True)
>  File "codecs.py", line 424, in read
>    newchars, decodedbytes = self.decode(data, self.errors)
> UnicodeDecodeError: 'utf8' codec can't decode bytes in position 17-19:
> invalid data
>
> bzr 0.90.0 on python 2.5.1.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'commit']
>
> ** please send this report to bazaar at lists.ubuntu.com
>



More information about the bazaar mailing list