ScFiltersTest::testUnicodeFileNameGnumeric only works with UTF-8
Change-Id: If31062abf50125c65a90566f1276f37d6725f73c
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user