equal
deleted
inserted
replaced
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 |