Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 3835:d1ce5461beed
Allow the user to specify the fallback encoding for the changelog
Example: use EUC-JP instead of ISO-8859-1:
[ui]
fallbackencoding = EUC-JP
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 08 Dec 2006 22:01:05 -0200 |
parents | b3b868113d24 |
children | 4f6db0233606 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Dec 08 23:33:32 2006 +0100 +++ b/mercurial/localrepo.py Fri Dec 08 22:01:05 2006 -0200 @@ -72,6 +72,10 @@ self.manifest = manifest.manifest(self.sopener, v) self.changelog = changelog.changelog(self.sopener, v) + fallback = self.ui.config('ui', 'fallbackencoding') + if fallback: + util._fallbackencoding = fallback + # the changelog might not have the inline index flag # on. If the format of the changelog is the same as found in # .hgrc, apply any flags found in the .hgrc as well.