equal
deleted
inserted
replaced
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 |
15 for Python 2.7 and up. This is the same corrected code for earlier |
15 for Python 2.7 and up. This is the same corrected code for earlier |
16 Python versions. |
16 Python versions. |
17 |
17 |
18 However, we can't use a version check for this method, as some distributions |
18 However, we can't use a version check for this method, as some distributions |
19 patch Python to fix this. Instead, we use it as a 'fixer' for the mac-roman |
19 patch Python to fix this. Instead, we use it as a 'fixer' for the mac-roman |
20 encoding, as it is unlikely that this encoding is the actually expected. |
20 encoding, as it is unlikely that this encoding is the actually expected. |
21 ''' |
21 ''' |
22 try: |
22 try: |
23 locale.CODESET |
23 locale.CODESET |