Merge pull request #5592 from Tachi107/2.28-msvc-utf-8

2.28 backport - build(msvc): always assume source files are in UTF-8
This commit is contained in:
Gilles Peskine 2022-03-02 16:42:35 +01:00 committed by GitHub
commit 757464c865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -226,8 +226,8 @@ if(CMAKE_COMPILER_IS_IAR)
endif(CMAKE_COMPILER_IS_IAR)
if(CMAKE_COMPILER_IS_MSVC)
# Strictest warnings
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
# Strictest warnings, UTF-8 source and execution charset
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /utf-8")
endif(CMAKE_COMPILER_IS_MSVC)
if(MBEDTLS_FATAL_WARNINGS)

View File

@ -0,0 +1,2 @@
Changes
* Assume source files are in UTF-8 when using MSVC with CMake.