From 0213b80693e75ab96b797502e0d0c7c14adc9584 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 May 2020 20:05:18 +0530 Subject: [PATCH] Tell MSVC our source files are UTF-8 --- setup/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/build.py b/setup/build.py index c4889cbe00..ef93146a56 100644 --- a/setup/build.py +++ b/setup/build.py @@ -200,7 +200,7 @@ def init_env(): if iswindows: cc = cxx = msvc.cc - cflags = '/c /nologo /MD /W3 /EHsc /DNDEBUG'.split() + cflags = '/c /nologo /MD /W3 /EHsc /utf-8 /DNDEBUG'.split() ldflags = '/DLL /nologo /INCREMENTAL:NO /NODEFAULTLIB:libcmt.lib'.split() # cflags = '/c /nologo /Ox /MD /W3 /EHsc /Zi'.split() # ldflags = '/DLL /nologo /INCREMENTAL:NO /DEBUG'.split()