Can not add custom tool with national characters in any field
Created originally on Bitbucket by KenjiroPL (Sylwester Zarębski)
When entered national (non ascii) characters in any custom tool field thg reports error:
#!python
** Mercurial version (4.0.2). TortoiseHg version (4.0.2)
** Command:
** CWD: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Sieciowe\TortoiseHg
** Encoding: cp1250
** Extensions loaded: histedit, strip, mq, rebase, evolve, shelve, hggit
** Python version: 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.7 PyQt-4.11.4 QScintilla-2.9
Traceback (most recent call last):
File "tortoisehg\hgqt\customtools.pyo", line 673, in okClicked
File "tortoisehg\hgqt\customtools.pyo", line 817, in validateForm
File "tortoisehg\hgqt\customtools.pyo", line 801, in value
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 3: ordinal not in range(128)
How to reproduce:
- Open custom tool window.
- Enter any non ascii character, e.g. ą, ó, ł.
- See above error.