Issue #3314 resolved

UnicodeEncodeError in rejects dialog (when shifting shelf)

Anonymous created an issue

Steps done:

  • shelved some files
  • pushed and pulled new versions
  • moved shelved files back into repository
  • situation: one file has been changed in the meantime

Error message:

** Mercurial version (2.7).  TortoiseHg version (2.9)
** Command: 
** CWD: C:\temp
** Encoding: cp1252
** Extensions loaded: mercurial_keyring, mq
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
Traceback (most recent call last):
  File "tortoisehg\hgqt\shelve.pyo", line 228, in moveFilesLeft
  File "tortoisehg\hgqt\chunks.pyo", line 359, in mergeChunks
  File "tortoisehg\hgqt\chunks.pyo", line 199, in runPatcher
  File "tortoisehg\hgqt\rejects.pyo", line 110, in __init__
  File "tortoisehg\hgqt\qscilib.pyo", line 149, in read
  File "tortoisehg\hgqt\qscilib.pyo", line 393, in setDefaultEolMode
  File "tortoisehg\util\hglib.pyo", line 70, in fromunicode
  File "encodings\cp1252.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\ufffd' in position 43: character maps to <undefined>

Comments (6)

  1. Yuya Nishihara

    fileencoding: add utility to manage encoding menu (refs #3314)

    This module is named as "file"encoding because it will be used mainly by filedata and fileview.

    _('$FILE_ENCODINGS') is the hook point to localize the list of the commonly- used encodings.

    → <<cset a570acb919cb>>

  2. Log in to comment