diff options
author | Yuhang Zhao <2546789017@qq.com> | 2022-08-25 10:53:33 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2022-08-27 16:17:51 +0800 |
commit | 50bb5f8282d3295f9891b83126526474235d0dec (patch) | |
tree | 8bd06f4180ca740a93a72b2b3fffec529dd813e0 | |
parent | 0c0eadc484ab7143801593ccdbe8e96eeb9f6cf7 (diff) |
MSVC: Set default code page to UTF-8 for resource compiler
Add "/c65001" to explicitly set the code page to UTF-8 for
the resource compiler, otherwise the resource compiler may
pick up the local code page instead.
Already tested locally, most Qt repos build without any problem,
only very little repos are untested due to my local environment
can't build them.
Change-Id: I7e20f936d6af1fbb90b5c20980190b727c9021de
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index d9d795331f..6d8c858ea8 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -1808,7 +1808,7 @@ function(_qt_internal_generate_win32_rc_file target) endif() if(MSVC) - set(extra_rc_flags "/nologo") + set(extra_rc_flags "/c65001 /nologo") else() set(extra_rc_flags) endif() |