Skip to content

Commit 4a89428

Browse files
authored
Merge pull request #233 from robotpy/global-utf8
Enable utf-8 flag globally for MSVC
2 parents cf2c751 + 29b9dc3 commit 4a89428

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

robotpy_build/command/build_ext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def build_extensions(self):
116116
# Enable standards-compliant preprocessor
117117
if has_flag(self.compiler, "/Zc:preprocessor"):
118118
opts.append("/Zc:preprocessor")
119+
# Enable utf-8 source files.. this probably shouldn't be set globally
120+
if has_flag(self.compiler, "/utf-8"):
121+
opts.append("/utf-8")
119122
if cc_launcher:
120123
# yes, this is terrible. There's really no other way with distutils
121124
def _spawn(cmd):

0 commit comments

Comments
 (0)