[Python-checkins] bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)

methane webhook-mailer at python.org
Thu Feb 11 19:06:59 EST 2021


https://github.com/python/cpython/commit/fedd86df2448370cdf62a229fd6f31dc92daf379
commit: fedd86df2448370cdf62a229fd6f31dc92daf379
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2021-02-12T09:06:47+09:00
summary:

bpo-43174: Windows: Use /utf-8 compiler option. (GH-24498)

files:
A Misc/NEWS.d/next/Build/2021-02-10-14-11-53.bpo-43174.F9zwXQ.rst
M PCbuild/pyproject.props

diff --git a/Misc/NEWS.d/next/Build/2021-02-10-14-11-53.bpo-43174.F9zwXQ.rst b/Misc/NEWS.d/next/Build/2021-02-10-14-11-53.bpo-43174.F9zwXQ.rst
new file mode 100644
index 0000000000000..64c80188d02f6
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2021-02-10-14-11-53.bpo-43174.F9zwXQ.rst
@@ -0,0 +1 @@
+Windows build now uses ``/utf-8`` compiler option.
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index d7762ca1bc685..98e5ab030321d 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -46,6 +46,7 @@
       <WholeProgramOptimization>true</WholeProgramOptimization>
       <InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">OnlyExplicitInline</InlineFunctionExpansion>
       <InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">OnlyExplicitInline</InlineFunctionExpansion>
+      <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
     </ClCompile>
     <ClCompile Condition="$(Configuration) == 'Debug'">
       <Optimization>Disabled</Optimization>



More information about the Python-checkins mailing list