diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-09-09 11:45:13 +0200 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-09-09 11:45:13 +0200 |
commit | c617ecebd7e6f5b5ec29f32ca54decf649c00d7a (patch) | |
tree | f4dbae1cc849da6ad5e2fb454ffa8542eaf97920 /cppuhelper | |
parent | 5518e93f0d8c739938783054082eeda4c1c0d06b (diff) | |
parent | 1f5e32262c475444b09293e7e7b78141a1704696 (diff) |
merge commit to DEV300_m57
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/shlib.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx index db5d91124a14..2008d27f5310 100644 --- a/cppuhelper/source/shlib.cxx +++ b/cppuhelper/source/shlib.cxx @@ -315,7 +315,26 @@ static OUString getLibEnv(OUString const & aModulePath, } if (!pEnv->is() && pEnvTypeName) + { *pSourceEnv_name = OUString::createFromAscii(pEnvTypeName); + const char * pUNO_ENV_LOG = ::getenv( "UNO_ENV_LOG" ); + if (pUNO_ENV_LOG && rtl_str_getLength(pUNO_ENV_LOG) ) + { + OString implName(OUStringToOString(cImplName, RTL_TEXTENCODING_ASCII_US)); + OString aEnv( pUNO_ENV_LOG ); + sal_Int32 nIndex = 0; + do + { + const OString aStr( aEnv.getToken( 0, ';', nIndex ) ); + if ( aStr.equals(implName) ) + { + *pSourceEnv_name += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(":log")); + break; + } + } while( nIndex != -1 ); + } + + } return aExcMsg; } |