Repository Workbench crashes by UnicodeEncodeError when it launches

Hirokazu Moriguchi avatarHirokazu Moriguchi created an issue

Hello ! I try to use a Repository Workbench of TortoiseHg 1.9 on Japanese Windows 7/XP. It crashed when I select [Hg Workbench] of Windows Explorer (right-click) context menu.

** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues
** Mercurial version (1.7.3+46-9f707b297b0f).  TortoiseHg version (1.9.1+153-f397755e871f)
** Command: --nofork workbench
** CWD: C:\Users\Public\Documents\hirokazu\webworkers
** Extensions loaded: fixfrozenexts
** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Windows version: (6, 1, 7600, 2, '')
** Processor architecture: x64
Traceback (most recent call last):
  File "tortoisehg\hgqt\run.pyo", line 453, in __call__
  File "tortoisehg\hgqt\workbench.pyo", line 664, in run
  File "tortoisehg\hgqt\workbench.pyo", line 48, in __init__
  File "tortoisehg\hgqt\reporegistry.pyo", line 229, in __init__
  File "tortoisehg\hgqt\reporegistry.pyo", line 27, in settingsfilename
UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-10: ordinal not in range(128)

Environment:

  • tortoisehg-unstable-1.9.1667.3550
  • Windows 7 and XP (Language: Japanese)

Additional information:

  • The path of its repository contains acsii characters only. (doesn't contains non-ascii chars)
  • Log messages contains non-ascii characters.
  • I haven't seen the same message when I use a Repository Explorer of TortoiseHg 1.1.8.

Thanks!

Comments (6)

  1. Hirokazu Moriguchi

    Maybe your profile path (%USERPROFILE%) contains non-ascii characters?

    Yes! It contains non-ascii characters as you say. My problem was solved with the latest build(tortoisehg-unstable-1.9.1712.3550). Repository Workbench launches normaly now.

    Thank you!

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.