1. André Sintzoff
  2. thg-sintzoff


Yuya Nishihara  committed e9f68bd

fileencoding: include utf-8 if no locale candidates are specified (refs #3620)

This mimics the behavior of TortoiseHg<2.11, which can display utf-8 content
because of the bug #3299.

  • Participants
  • Parent commits cb835c6
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/fileencoding.py

View file
  • Ignore whitespace
     localeencs = []
         localeencs.extend(canonname(e) for e in _LOCALEENCODINGS.split(','))
+    else:
+        # utf-8 is widely used; also mimics pre-2.11 behavior (007047b54911)
+        localeencs.append('utf-8')
     enc = canonname(encoding.encoding)
     if enc not in localeencs: