From 3cba456ff42ce28ca1d0e34736da06b7d15d0690 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Mon, 31 Dec 2001 01:54:45 +0000 Subject: [PATCH] QFile::encodeName() here, too svn path=/trunk/kdebase/kwin/; revision=129232 --- plugins.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins.cpp b/plugins.cpp index d74799a424..a608388a5b 100644 --- a/plugins.cpp +++ b/plugins.cpp @@ -82,12 +82,12 @@ void PluginMgr::loadPlugin(QString nameStr) lt_dlinit(); } - QString path = KLibLoader::findLibrary(nameStr.latin1()); + QString path = KLibLoader::findLibrary(QFile::encodeName(nameStr)); // If the plugin was not found, try to find the default if (path.isEmpty()) { nameStr = defaultPlugin; - path = KLibLoader::findLibrary(nameStr.latin1()); + path = KLibLoader::findLibrary(QFile::encodeName(nameStr)); } // If no library was found, exit kwin with an error message @@ -99,14 +99,14 @@ void PluginMgr::loadPlugin(QString nameStr) return; // Try loading the requested plugin - handle = lt_dlopen(path.latin1()); + handle = lt_dlopen(QFile::encodeName(path)); // If that fails, fall back to the default plugin if (!handle) { nameStr = defaultPlugin; - path = KLibLoader::findLibrary(nameStr.latin1()); + path = KLibLoader::findLibrary(QFile::encodeName(nameStr)); if (!path.isEmpty()) - handle = lt_dlopen(path.latin1()); + handle = lt_dlopen(QFile::encodeName(path)); } if (!handle)