UnicodeDecodeError with "bzr fast-import"

Teemu Likonen tlikonen at iki.fi
Sun May 18 15:54:12 BST 2008


Teemu Likonen wrote (2008-05-18 12:31 +0300):

> The other repo converts nicely but in bzr commit messages individual
> bytes in UTF-8 multibyte sequenced are converted to separate
> characters. I.e. "ä" which is UTF-8 encoded as c3a4 (hex) will display
> as "ä" in bzr log output.

And here are steps to reproduce this one:

$ mkdir testdir
$ cd testdir

$ mkdir repo.git
$ cd repo.git
$ git init
$ echo Ääkkösiä >aakkosia
$ git add .
$ git commit -m Ääkkösiä
$ git fast-export HEAD >../git.dump

$ cd ..

$ bzr init repo.bzr
$ cd repo.bzr
$ bzr fast-import ../git.dump
$ bzr log
------------------------------------------------------------
revno: 1
committer: Teemu Likonen <tlikonen at iki.fi>
timestamp: Sun 2008-05-18 17:47:29 +0300
message:
  Ã
   äkkösiä



More information about the bazaar mailing list