diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-24 14:34:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-24 14:34:39 +0200 |
commit | 30935cf8adf8747b46ea485ba4a320b542a4f7a5 (patch) | |
tree | f0f255d5b72422078878b4c14ed9ac5bbd64e796 /solenv | |
parent | f9acc8649d4a31ddd84832124e0413d4f1fa1710 (diff) |
Explicitly specify -finput-charset=UTF-8 for GCC/Clang
...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
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 2 |
1 files changed, 2 insertions, 0 deletions
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 \ |