From 9f5696dfa2241a28916727bc4bf82959b2bc1363 Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Thu, 3 May 2012 12:45:19 +0000 Subject: use ascii convenience methods for dynamic loading --- vcl/unx/generic/app/randrwrapper.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/unx/generic/app/randrwrapper.cxx') diff --git a/vcl/unx/generic/app/randrwrapper.cxx b/vcl/unx/generic/app/randrwrapper.cxx index cc4db6dc98b2..753be4f123b4 100644 --- a/vcl/unx/generic/app/randrwrapper.cxx +++ b/vcl/unx/generic/app/randrwrapper.cxx @@ -152,14 +152,13 @@ RandRWrapper::RandRWrapper( Display* pDisplay ) : initFromModule(); if( ! m_bValid ) { - rtl::OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libXrandr.so.2" ) ); // load and resolve dependencies immediately // rationale: there are older distributions where libXrandr.so.2 is not linked // with libXext.so, resulting in a missing symbol and terminating the office // obviously they expected libXext to be linked in global symbolspace (that is // linked by the application), which is not the case with us (because we want // to be able to run in headless mode even without an installed X11 library) - m_pRandRLib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_DEFAULT | SAL_LOADMODULE_NOW ); + m_pRandRLib = osl_loadAsciiModule( "libXrandr.so.2", SAL_LOADMODULE_DEFAULT | SAL_LOADMODULE_NOW ); initFromModule(); } if( m_bValid ) -- cgit