Commit 701e69260affec2bd07ed541953142e8c543ef19
1 parent
d796314c
common: Risk calling setlocale for getting correct encoding
Without this I got ASCII encoding on my machine
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/common/__init__.py
| @@ -25,7 +25,7 @@ DEBUG = False | @@ -25,7 +25,7 @@ DEBUG = False | ||
| 25 | 25 | ||
| 26 | # the encoding specified in system environment | 26 | # the encoding specified in system environment |
| 27 | try: | 27 | try: |
| 28 | - PREFERRED_ENCODING = getpreferredencoding(False) | 28 | + PREFERRED_ENCODING = getpreferredencoding() |
| 29 | except Exception as exc: | 29 | except Exception as exc: |
| 30 | if DEBUG: | 30 | if DEBUG: |
| 31 | print('Exception getting preferred encoding: {}'.format(exc)) | 31 | print('Exception getting preferred encoding: {}'.format(exc)) |