mercurial/encoding.py
changeset 8312 b87a50b7125c
parent 8226 8b2cd04a6e97
child 9574 9e9f63d5c456
equal deleted inserted replaced
8311:e0eb03bfa5af 8312:b87a50b7125c
     3 #  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
     3 #  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2, incorporated herein by reference.
     6 # GNU General Public License version 2, incorporated herein by reference.
     7 
     7 
     8 import sys, unicodedata, locale, os, error
     8 import error
       
     9 import sys, unicodedata, locale, os
     9 
    10 
    10 _encodingfixup = {'646': 'ascii', 'ANSI_X3.4-1968': 'ascii'}
    11 _encodingfixup = {'646': 'ascii', 'ANSI_X3.4-1968': 'ascii'}
    11 
    12 
    12 try:
    13 try:
    13     encoding = os.environ.get("HGENCODING")
    14     encoding = os.environ.get("HGENCODING")