Opened 4 years ago

Closed 3 years ago

#10776 closed defect (duplicate)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xd6 in position 39: invalid continuation byte

Reported by: hslee@… Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


How to Reproduce

While doing a GET operation on /login, Trac issued an internal error.

(please provide additional details here)

Request parameters:


User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

System Information

Trac 0.12.2
Babel 0.9.6 (translations unavailable)
Docutils 0.8.1
Genshi 0.6
mod_python 3.3.1
Pygments 1.4
pysqlite 2.6.0
Python 2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]
pytz 2011k
setuptools 0.6
SQLite 3.7.9
Subversion 1.6.17 (r1128011)
jQuery 1.4.2

Enabled Plugins


Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 511, in _dispatch_request
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 202, in dispatch
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 344, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.7/dist-packages/trac/versioncontrol/", line 332, in pre_process_request
  File "/usr/lib/python2.7/dist-packages/trac/versioncontrol/", line 242, in sync
  File "/usr/lib/python2.7/dist-packages/trac/db/", line 77, in transaction_wrapper
  File "/usr/lib/python2.7/dist-packages/trac/versioncontrol/", line 271, in do_transaction
    for path, kind, action, bpath, brev in cset.get_changes():
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 655, in get_changes
    self.repos.git.diff_tree(parent, self.rev, find_renames=True):
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 862, in diff_tree
    yield __chg_tuple()
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 854, in __chg_tuple
    chg[5] = self._fs_to_unicode(chg[5])
  File "/usr/lib/python2.7/dist-packages/tracext/git/", line 237, in <lambda>
    self._fs_to_unicode = lambda s: s.decode(git_fs_encoding)
  File "/usr/lib/python2.7/encodings/", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd6 in position 39: invalid continuation byte

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by anonymous

  • Component changed from SELECT A HACK to GitPlugin
  • Owner changed from anonymous to hvr
  • Trac Release set to 0.12

comment:2 Changed 4 years ago by rjollos

Currently there is no maintainer for the GitPlugin. The best way to get support for Git is to upgrade to Trac 1.0, and you will find that the plugin has been integrated into the core.

comment:3 Changed 3 years ago by jun66j5

  • Resolution set to duplicate
  • Status changed from new to closed

A duplicate of #9960.

Add Comment

Modify Ticket

as closed The owner will remain hvr.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.