From 30935cf8adf8747b46ea485ba4a320b542a4f7a5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 24 Aug 2017 14:34:39 +0200 Subject: Explicitly specify -finput-charset=UTF-8 for GCC/Clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...after 9a7d2d72cef7ff14a020c1024fbff8c00e4e4aff "tell msvc our source code is written using utf-8" did the equivalent for MSVC. That should cause the C++ string literal u8"ßa" (in vcl/qa/cppunit/mnemonic.cxx) introduced with that commit to reliably be interpreted as intended by all our toolchains. Change-Id: Ibbda8588a3ca66d1c2764f70aa999fad243f1bb1 --- solenv/gbuild/platform/com_GCC_defs.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'solenv') diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 97a2538b1895..793e5d34f656 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -55,6 +55,7 @@ gb_CFLAGS_COMMON := \ -Wstrict-prototypes \ -Wundef \ -Wunused-macros \ + -finput-charset=UTF-8 \ -fmessage-length=0 \ -fno-common \ -pipe \ @@ -67,6 +68,7 @@ gb_CXXFLAGS_COMMON := \ -Wextra \ -Wundef \ -Wunused-macros \ + -finput-charset=UTF-8 \ -fmessage-length=0 \ -fno-common \ -pipe \ -- cgit