##// END OF EJS Templates
Add encoding detection
Matt Mackall -
r3769:96095d9f default
parent child Browse files
Show More
@@ -15,7 +15,9 b' platform-specific details from the core.'
15 15 from i18n import gettext as _
16 16 from demandload import *
17 17 demandload(globals(), "cStringIO errno getpass popen2 re shutil sys tempfile")
18 demandload(globals(), "os threading time calendar ConfigParser")
18 demandload(globals(), "os threading time calendar ConfigParser locale")
19
20 _encoding = os.environ.get("HGENCODING") or locale.getpreferredencoding()
19 21
20 22 # used by parsedate
21 23 defaultdateformats = ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M',
General Comments 0
You need to be logged in to leave comments. Login now