mercurial/encoding.py
changeset 12062 c327bfa5e831
parent 11892 2be70ca17311
child 12770 614f0d8724ab
equal deleted inserted replaced
12061:f7557345b199 12062:c327bfa5e831
     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 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
     8 import error
     8 import error
     9 import sys, unicodedata, locale, os
     9 import unicodedata, locale, os
    10 
    10 
    11 def _getpreferredencoding():
    11 def _getpreferredencoding():
    12     '''
    12     '''
    13     On darwin, getpreferredencoding ignores the locale environment and
    13     On darwin, getpreferredencoding ignores the locale environment and
    14     always returns mac-roman. http://bugs.python.org/issue6202 fixes this
    14     always returns mac-roman. http://bugs.python.org/issue6202 fixes this