Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On 07/25/2017 04:36 PM, Caolán McNamara wrote:
commit 9a7d2d72cef7ff14a020c1024fbff8c00e4e4aff
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Sat Jul 22 12:52:34 2017 +0100

     tell msvc our source code is written using utf-8
Change-Id: I4fb364ceb34e0851f2d04c403333bf428e8cfa98
     Reviewed-on: https://gerrit.libreoffice.org/40305
     Tested-by: Jenkins <ci@libreoffice.org>
     Reviewed-by: Caolán McNamara <caolanm@redhat.com>
     Tested-by: Caolán McNamara <caolanm@redhat.com>

[...]
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index 7f184c6be057..9aa1435a5a94 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -132,6 +132,7 @@ gb_AFLAGS := $(AFLAGS)
  #   warning)
gb_CFLAGS := \
+       -utf-8 \
        -Gd \
        -GR \
        -Gs \
@@ -161,6 +162,7 @@ gb_CFLAGS += \
  endif
gb_CXXFLAGS := \
+       -utf-8 \
        -Gd \
        -GR \
        -Gs \
diff --git a/vcl/qa/cppunit/mnemonic.cxx b/vcl/qa/cppunit/mnemonic.cxx
index fb8bc8c454ac..4527d2ed1784 100644
--- a/vcl/qa/cppunit/mnemonic.cxx
+++ b/vcl/qa/cppunit/mnemonic.cxx
@@ -33,8 +33,7 @@ void VclMnemonicTest::testMnemonic()
      MnemonicGenerator aGenerator;
{
-        const sal_Unicode TEST[] = { 0x00DF, 'a' };
-        OUString sResult = aGenerator.CreateMnemonic(OUString(TEST, SAL_N_ELEMENTS(TEST)));
+        OUString sResult = aGenerator.CreateMnemonic(OUString::fromUtf8(u8"ßa"));

Are we confident that all relevant toolchains treat C++ source files as UTF-8 now? How about e.g. Linux, where I could imagine that GCC/Clang would base their behavior on LC_* env vars?

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.