[Libreoffice-commits] core.git: sc/qa

Stephan Bergmann sbergman at redhat.com
Wed Aug 23 15:03:24 UTC 2017


 sc/qa/unit/subsequent_filters-test.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 9a19e96d0d9df032d51748c02adb4fe778291afd
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Aug 23 17:00:36 2017 +0200

    ScFiltersTest::testUnicodeFileNameGnumeric only works with UTF-8
    
    Change-Id: If31062abf50125c65a90566f1276f37d6725f73c

diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 1fdec5f26079..86a67c2cea91 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -3932,6 +3932,13 @@ void ScFiltersTest::testTdf97598XLSX()
 #ifdef UNX
 void ScFiltersTest::testUnicodeFileNameGnumeric()
 {
+    // Mapping the LO-interal URL
+    // <file:///.../sc/qa/unit/data/gnumeric/t%C3%A4%C3%9Ft.gnumeric> to the
+    // repo's file sc/qa/unit/data/gnumeric/t\303\244\303\237t.gnumeric only
+    // works when the system encoding is UTF-8:
+    if (osl_getThreadTextEncoding() != RTL_TEXTENCODING_UTF8) {
+        return;
+    }
     OString aFileNamePrefix= "t" + OString(RTL_CONSTASCII_STRINGPARAM("\u00e4\u00df")) + "t.";
     ScDocShellRef xDocSh = loadDoc(OStringToOUString(aFileNamePrefix, RTL_TEXTENCODING_UTF8), FORMAT_GNUMERIC);
     CPPUNIT_ASSERT(xDocSh.is());


More information about the Libreoffice-commits mailing list