diff options
author | Eike Rathke <erack@redhat.com> | 2012-08-11 12:50:11 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-08-11 13:41:26 +0200 |
commit | d724f64703eaa0b0595fc4983e42875f2b439e88 (patch) | |
tree | 6147a4051d32cc7eb24c1990263feb814244113f /i18npool/qa | |
parent | langtag: worked around reg2xml libxml2 encoding problem (diff) | |
download | core-d724f64703eaa0b0595fc4983e42875f2b439e88.tar.gz core-d724f64703eaa0b0595fc4983e42875f2b439e88.zip |
langtag: pass system path as data path instead of file URL
Diffstat (limited to 'i18npool/qa')
-rw-r--r-- | i18npool/qa/cppunit/test_languagetag.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/i18npool/qa/cppunit/test_languagetag.cxx b/i18npool/qa/cppunit/test_languagetag.cxx index fee5769f795c..c8a5f7c522b5 100644 --- a/i18npool/qa/cppunit/test_languagetag.cxx +++ b/i18npool/qa/cppunit/test_languagetag.cxx @@ -54,12 +54,14 @@ void TestLanguageTag::testInit() const char* pEnv = getenv("OUTDIR"); CPPUNIT_ASSERT_MESSAGE("No $OUTDIR", pEnv); aBuf.append( "file:///").append( OStringToOUString( pEnv, RTL_TEXTENCODING_UTF8)).append( "/share/liblangtag"); - OUString aPath( aBuf.makeStringAndClear()); - OUString aData( aPath); + OUString aURL( aBuf.makeStringAndClear()); + OUString aData( aURL); aData += "/language-subtag-registry.xml"; osl::DirectoryItem aDirItem; CPPUNIT_ASSERT_MESSAGE("liblangtag data not found", osl::DirectoryItem::get( aData, aDirItem) == osl::DirectoryItem::E_None); + OUString aPath; + CPPUNIT_ASSERT( osl::FileBase::getSystemPathFromFileURL( aURL, aPath) == osl::FileBase::E_None); LanguageTag::overrideDataPath( aPath); #endif } |