diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-13 22:29:03 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-07-09 14:19:22 +0200 |
commit | fb89b081f73a65b27349e98554f744a6ead83c3d (patch) | |
tree | f7867449d897eac9fa78f5b73068e5ec3ee1cc2a /sc/qa | |
parent | 2f2eba56d1f8ec5cdcadb4852e8856858477c008 (diff) |
add test for non-ascii gnumeric file names, tdf#107827
Change-Id: Ib530567df9cb487951d8dbf1b7824f78a7d150d9
Reviewed-on: https://gerrit.libreoffice.org/37581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/data/gnumeric/täßt.gnumeric | bin | 0 -> 1716 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sc/qa/unit/data/gnumeric/täßt.gnumeric b/sc/qa/unit/data/gnumeric/täßt.gnumeric Binary files differnew file mode 100644 index 000000000000..043616c3e3f6 --- /dev/null +++ b/sc/qa/unit/data/gnumeric/täßt.gnumeric 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); |