i18n: encode output in user's local encoding
This makes the translated output obey the HGENCODING environment
variable or the preferred encoding as set by the LANG or LC_ALL
environment variables.
Python 2.4 has a lgettext method which is similar, except that it
doesn't know about HGENCODING or the settings in .hgrc.
adding a
% default context
[0;1mdiff -r cf9f4ba66af2 a[0m
[0;31;1m--- a/a[0m
[0;32;1m+++ b/a[0m
[0;35m@@ -2,7 +2,7 @@[0m
c
a
a
[0;31m-b[0m
[0;32m+dd[0m
a
a
c
% --unified=2
[0;1mdiff -r cf9f4ba66af2 a[0m
[0;31;1m--- a/a[0m
[0;32;1m+++ b/a[0m
[0;35m@@ -3,5 +3,5 @@[0m
a
a
[0;31m-b[0m
[0;32m+dd[0m
a
a