From 701e69260affec2bd07ed541953142e8c543ef19 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Fri, 2 Nov 2018 17:21:06 +0100 Subject: [PATCH] common: Risk calling setlocale for getting correct encoding --- oletools/common/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/common/__init__.py b/oletools/common/__init__.py index 4fff77e..9bff82f 100644 --- a/oletools/common/__init__.py +++ b/oletools/common/__init__.py @@ -25,7 +25,7 @@ DEBUG = False # the encoding specified in system environment try: - PREFERRED_ENCODING = getpreferredencoding(False) + PREFERRED_ENCODING = getpreferredencoding() except Exception as exc: if DEBUG: print('Exception getting preferred encoding: {}'.format(exc)) -- libgit2 0.21.4