1 diff --git a/llvm/utils/extract_symbols.py b/llvm/utils/extract_symbols.py
2 index 43f603963a2..01fe10d36f0 100755
3 --- a/llvm/utils/extract_symbols.py
4 +++ b/llvm/utils/extract_symbols.py
5 @@ -32,7 +32,7 @@ import argparse
6 def dumpbin_get_symbols(lib):
7 process = subprocess.Popen(['dumpbin','/symbols',lib], bufsize=1,
8 stdout=subprocess.PIPE, stdin=subprocess.PIPE,
9 - universal_newlines=True)
10 + universal_newlines=True, encoding='mbcs')
12 for line in process.stdout:
13 # Look for external symbols that are defined in some section