[Libreoffice-commits] core.git:
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Jul 9 12:19:52 UTC 2017
sc/qa/unit/data/gnumeric/t\303\244\303\237t.gnumeric" |binary
sc/qa/unit/subsequent_filters-test.cxx | 17 +++++++++++++++++
2 files changed, 17 insertions(+)
New commits:
commit fb89b081f73a65b27349e98554f744a6ead83c3d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat May 13 22:29:03 2017 +0200
add test for non-ascii gnumeric file names, tdf#107827
Change-Id: Ib530567df9cb487951d8dbf1b7824f78a7d150d9
Reviewed-on: https://gerrit.libreoffice.org/37581
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git "a/sc/qa/unit/data/gnumeric/t\303\244\303\237t.gnumeric" "b/sc/qa/unit/data/gnumeric/t\303\244\303\237t.gnumeric"
new file mode 100644
index 000000000000..043616c3e3f6
Binary files /dev/null and "b/sc/qa/unit/data/gnumeric/t\303\244\303\237t.gnumeric" differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 4c786f210545..2186af3e08bf 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -239,6 +239,9 @@ public:
void testTdf97598XLSX();
void testPageScalingXLSX();
+#ifdef UNX
+ void testUnicodeFileNameGnumeric();
+#endif
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX);
@@ -361,6 +364,9 @@ public:
CPPUNIT_TEST(testTdf97598XLSX);
CPPUNIT_TEST(testPageScalingXLSX);
+#ifdef UNX
+ CPPUNIT_TEST(testUnicodeFileNameGnumeric);
+#endif
CPPUNIT_TEST_SUITE_END();
@@ -3880,6 +3886,17 @@ void ScFiltersTest::testTdf97598XLSX()
xDocSh->DoClose();
}
+#ifdef UNX
+void ScFiltersTest::testUnicodeFileNameGnumeric()
+{
+ OString aFileNamePrefix= "t" + OString(RTL_CONSTASCII_STRINGPARAM("\u00e4\u00df")) + "t.";
+ ScDocShellRef xDocSh = loadDoc(OStringToOUString(aFileNamePrefix, RTL_TEXTENCODING_UTF8), FORMAT_GNUMERIC);
+ CPPUNIT_ASSERT(xDocSh.is());
+
+ xDocSh->DoClose();
+}
+#endif
+
void ScFiltersTest::testCondFormatXLSB()
{
ScDocShellRef xDocSh = loadDoc("cond_format.", FORMAT_XLSB);
More information about the Libreoffice-commits
mailing list