diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -337,7 +337,7 @@ class changelog(revlog.revlog): Returns a 6-tuple consisting of the following: - manifest node (binary) - - user (encoding.localstr) + - user (binary) - (time, timezone) 2-tuple of a float and int offset - list of files modified by the cset - commit message / description (binary) @@ -350,7 +350,7 @@ class changelog(revlog.revlog): desc = text[last + 2:] l = text[:last].split('\n') manifest = bin(l[0]) - user = encoding.tolocal(l[1]) + user = l[1] tdata = l[2].split(' ', 2) if len(tdata) != 3: diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -548,7 +548,7 @@ class changectx(basectx): return self._changeset[0] def user(self): - return self._changeset[1] + return encoding.tolocal(self._changeset[1]) def date(self): return self._changeset[2] def files(self):