Kallithea issues archive

Issue #103: UnicodeDecodeError when trying to show a commit with non-ASCII email.

Reported by: Kirill Gagarski
State: resolved
Created on: 2015-02-26 12:03
Updated on: 2015-04-21 10:11

Description

Steps to reproduce:

  1. Clone a repository managed by Kallithea.
  2. Commit and push something with following commands:
$ touch very_inportant_file
$ hg add very_important_file
$ hg com -m "Message" -u 'John Doe <джондо à éẋàṁṗłê.ç°ḿ>'
$ hg push
  1. Open the repository with the Kallithea web interface

The result is internal server error. The logs say that this is caused by UnicodeDecodeError. However, there is no problem with the repo when using the hg CLI interface.

Attachments

Comments

Comment by Kirill Gagarski, on 2015-02-26 12:06

Comment by Kirill Gagarski, on 2015-02-26 12:06

Comment by Kirill Gagarski, on 2015-02-26 12:06

Comment by Thomas De Schampheleire, on 2015-02-26 12:11

On which version of Kallithea do you see this? 0.1 or a specific commit?

Comment by Kirill Gagarski, on 2015-02-26 12:16

Thomas, 0.1

Comment by Kirill Gagarski, on 2015-02-26 12:20

Also there is no problem with non-ASCII commit messages and non-ASCII user name (outside angle brackets)

Comment by Andrej Shadura, on 2015-02-26 15:59

@gagarski, I can reproduce it here. Investigating.

Comment by Thomas De Schampheleire, on 2015-03-14 19:02

@andrew_shadura any update?

Comment by Andrej Shadura, on 2015-03-14 19:06

@patrickdepinguin, @gagarski, I think 9ee018948dcd2d38e44a7a7d748c3c1ae5505526 has fixed it. Please try :)

Comment by Kirill Gagarski, on 2015-04-21 10:11

Seems to work