Kaydet (Commit) 9a19e96d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

ScFiltersTest::testUnicodeFileNameGnumeric only works with UTF-8

Change-Id: If31062abf50125c65a90566f1276f37d6725f73c
üst 486d3b21
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment