Issue 331: Encoding problems in command promt
http://bitbucket.org/tortoisehg/stable/issue/331/encoding-problems-in-command-promt

Alil Adamov / diagiman on Mon, 29 Jun 2009 17:37:14 +0200:

Comment:
  Currently I have fix/workarround fore this in 2 lines.
######
diff -r 85370a06bc27 hggtk/hgtk.py
--- a/hggtk/hgtk.py     Sat Jun 27 05:23:00 2009 +0000
+++ b/hggtk/hgtk.py     Mon Jun 29 19:23:33 2009 +0400
@@ -21,10 +21,12 @@
 import mercurial.ui as _ui
 from mercurial import hg, util, fancyopts, cmdutil, extensions
 
-from thgutil.i18n import agettext as _
+from thgutil.i18n import agettext# as _
 from thgutil import hglib, paths, shlib
 from thgutil import version as thgversion
 
+_ = lambda s: agettext(s).decode('cp1251').encode('cp866')
+
 nonrepo_commands = '''userconfig clone debugcomplete init about help
 version thgstatus'''
######
And it works fine.
But I don't know if it acceptable for other situations.

-- 
This is an issue notification from bitbucket.org.
You are receiving this either because you are the
owner of the issue, or you are following the issue.

------------------------------------------------------------------------------
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to