Issue #682 resolved

failed to import patches from directory with non-ascii name

Mike Lu
created an issue

using 2.0.4 to import patches in a non-ascii named directory and caused UnicodeDecodeError traceback

Comments (5)

  1. Mike Lu reporter
    ** Mercurial version (1.8.3+146-bb7e3b3e6e11).  TortoiseHg version (2.0.4+72-2975e8e472f1)
    ** Command: 
    ** CWD: C:\Program Files (x86)\FindAndRunRobot
    ** Extensions loaded: mercurial_keyring, fixfrozenexts, convert, extdiff, fetch, mq, rebase, share, transplant, pbranch
    ** 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
    ** Qt-4.7.1 PyQt-4.8.3
    Traceback (most recent call last):
      File "tortoisehg\hgqt\thgimport.pyo", line 181, in browsefiles
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-8: ordinal not in range(128)
    

    import ok when the patches are in a ascii-named directory

  2. Log in to comment