1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #2289 resolved

UnicodeDecodeError on Manifest dialog

Hidetaka Iwata
created an issue

Clicking hyper-link to parent or child revision on the Manifest dialog causes UnicodeDecodeError.

** Mercurial version (2.3.2).  TortoiseHg version (2.5.1)
** Command: --nofork workbench
** CWD: D:\DEVELOP\HG\tortoisehg\thg
** Encoding: cp932
** Extensions loaded: mq, rebase, svn, record, graphlog
** Python version: 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x86
** Qt-4.8.0 PyQt-4.9.1
Traceback (most recent call last):
  File "tortoisehg\hgqt\manifestdialog.pyo", line 94, in _linkHandler
  File "tortoisehg\hgqt\manifestdialog.pyo", line 332, in setRev
  File "tortoisehg\hgqt\thgrepo.pyo", line 305, in __getitem__
  File "mercurial\localrepo.pyo", line 349, in __getitem__
  File "mercurial\context.pyo", line 84, in __init__
  File "mercurial\localrepo.pyo", line 644, in branchtip
UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 4: ordinal not in range(128)

Comments (2)

  1. Yuya Nishihara

    manifestdialog: fix possible unicode error at cset link handler (fixes #2289)

    If 'unknown branch' message is translated, UnicodeDecodeError occurs.

    Also changed to call ManifestWidget.setRev() with integer revision or None, because it looks to be designed as such.

    → <<cset 23092174a703>>

  2. Log in to comment