From ae7b430afd1239947b8f8b2d9dc0ca72dbce91ac Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 30 Dec 2021 17:11:02 +0100 Subject: Make source and execution character sets explicit (UTF-8) --- Makefile | 2 +- msbuild/compiler.props | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3962c1..37c769a 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ LIBS+=-fuse-ld=lld endif endif -CXXFLAGS+=-Wall -Wno-deprecated-declarations -Iinclude -std=$(STANDARD) +CXXFLAGS+=-Wall -Wno-deprecated-declarations -finput-charset=UTF-8 -fexec-charset=UTF-8 -Iinclude -std=$(STANDARD) LDLIBS+=\ -lboost_context \ diff --git a/msbuild/compiler.props b/msbuild/compiler.props index 6f5fcc5..97adb40 100644 --- a/msbuild/compiler.props +++ b/msbuild/compiler.props @@ -5,6 +5,7 @@ D:\ext\winnt\boost\boost-1_78_0;..\include;%(AdditionalIncludeDirectories) /utf-8 /D NOMINMAX /FS %(AdditionalOptions) /Zc:__cplusplus %(AdditionalOptions) + /utf-8 %(AdditionalOptions) stdcpp20 true _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS;_SILENCE_ALL_CXX20_DEPRECATION_WARNINGS;%(PreprocessorDefinitions) -- cgit v1.2.3