summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-03-21 20:35:45 +0100
committerMichael Stahl <mstahl@redhat.com>2013-03-21 20:35:45 +0100
commit3b5497f258fce37eebfc33536bfabb9016575cb5 (patch)
tree5da70e37e32f12fc224ae11969a6380983b9b23e /rsc
parentc49d0ba320faff58c0c9baefe5c1a182593fe22b (diff)
Revert "RscCmdLine: don't use obsolete DirEntry"
This reverts commit 3b00a7f87b8d428dc8c3d1d0ddb84b74bb2343d4. Breaks the build on windows, requires adapting RscCompiler::GetImageFilePath() to match.
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/rsc/rsc.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx
index 3d163514c9ac..74892184c296 100644
--- a/rsc/source/rsc/rsc.cxx
+++ b/rsc/source/rsc/rsc.cxx
@@ -167,10 +167,11 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH )
;
if( *pEqual )
{
- OString aSPath(pEqual + 1);
- if (aSPath.endsWith(OString(SAL_PATHDELIMITER)))
- aSPath = aSPath.copy(0, aSPath.getLength()-1);
- m_aReplacements.push_back( std::pair< OString, OString >( OString( (*ppStr)+4, pEqual - *ppStr - 4 ), aSPath) );
+ const rtl::OString aSPath( pEqual + 1 );
+ DirEntry aSDir(rtl::OStringToOUString(aSPath, RTL_TEXTENCODING_ASCII_US));
+
+ m_aReplacements.push_back( std::pair< OString, OString >( OString( (*ppStr)+4, pEqual - *ppStr - 4 ),
+ rtl::OUStringToOString(aSDir.GetFull(), RTL_TEXTENCODING_ASCII_US) ) );
}
}
else if( !rsc_stricmp( (*ppStr) + 1, "PreLoad" ) )