Issue #682 resolved

failed to import patches from directory with non-ascii name

Mike Lu avatarMike 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
    ** 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
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.