Error after Copy Patch / Import from Clipboard
Created originally on Bitbucket by fernandonajera (Fernando Nájera)
-
Select a revision. Right click - Export - Copy patch
-
Menu Repository - Import...
-
Click on Import from Clipboard
-
This exception happens. It seems to be UTF-8 related.
{{{ #!python ** Mercurial version (1.9.1). TortoiseHg version (2.1.2) ** Command: --nofork workbench ** CWD: C:\xxxxx-1.10.x ** Encoding: cp1252 ** Extensions loaded: mercurial_keyring, fetch, transplant, rebase, mq, relink, gpg, histedit ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] ** Windows version: (6, 1, 7601, 2, 'Service Pack 1') ** Processor architecture: x64 ** Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "tortoisehg\hgqt\thgimport.pyo", line 196, in getcliptext File "tortoisehg\util\hglib.pyo", line 109, in fromunicode File "encodings\cp1252.pyo", line 12, in encode UnicodeEncodeError: 'charmap' codec can't encode character u'\ufeff' in position 18912: character maps to
}}}
- The same revision, exported as a patch and imported via "Browse..." works OK.