1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #1194 duplicate

When select "Visual Diff Tool " combox in global setting.

Anonymous created an issue



Mercurial version (1.9.2). TortoiseHg version (2.1.3) Command: --nofork userconf CWD: D:\edit\htdocs\renren\workspace\renren\apps\photo\src\modules\uploader Encoding: cp936 Extensions loaded: Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] Windows version: (5, 1, 2600, 2, 'Service Pack 3') Processor architecture: x86 ** Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "tortoisehg\hgqt\settings.pyo", line 79, in showPopup File "tortoisehg\hgqt\settings.pyo", line 372, in findMergeTools File "tortoisehg\util\hglib.pyo", line 435, in mergetools File "mercurial\filemerge.pyo", line 32, in _findtool File "mercurial\win32.pyo", line 291, in lookupreg UnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in position 9: ordinal not in range(128)


Comments (4)

  1. Steve Borho

    What diff/merge tools do you have installed?

    This is a problem in Mercurial itself. The line looks like this (buf is a unicode string read from the Windows registry):

    return encoding.tolocal(buf.value.encode('UTF-8'))

    So it's converting the unicode path to UTF-8, then trying to encode that into what Mercurial thinks your local encoding is. Which is apparently ASCII.

  2. Anonymous

    Hey Steve,

    All my diff/merge tools are Mercurial and TortoiseHg default settings. I didn't install any external tools. And, my python version actually newest 2.7 version.

    See below, please:

    ActivePython-, mercurial-1.9.2-x86.msi, tortoisehg-2.1.3-hg-1.9.2-x86.msi

    This crash issue has occurred in old "Python 2.6 + mercurial 1.9.1 + tortoisehg 2.1.2" combination. So, I tried and installed these newest versions. But, it still crashes when I do same operations.

    My OS is official Windows XP SP3 Simple Chinese version. And, I have no idea about how to hack this issue.

    Thanks for you can give me any helps.


  3. Log in to comment