diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-07-05 00:20:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-07-05 00:20:47 +0200 |
commit | 2061af6ad4af8416b8f11c2b2fd1802dade0e3e9 (patch) | |
tree | 5391637ba3f9226c3099e99c5d3535fe8c628e45 /facetracknoir/global-settings.cpp | |
parent | 30fe442f524e91639e9d5f27d86c2edf290ab9c0 (diff) |
Deal correctly with non-latin1 characters in directory name
Diffstat (limited to 'facetracknoir/global-settings.cpp')
-rw-r--r-- | facetracknoir/global-settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/global-settings.cpp b/facetracknoir/global-settings.cpp index 2ab08a9d..f605b591 100644 --- a/facetracknoir/global-settings.cpp +++ b/facetracknoir/global-settings.cpp @@ -88,7 +88,7 @@ SelectedLibraries::SelectedLibraries(IDynamicLibraryProvider* mainApp) : correct = true; } -DynamicLibrary::DynamicLibrary(const char* filename) +DynamicLibrary::DynamicLibrary(const QString& filename) { this->filename = filename; QString fullPath = QCoreApplication::applicationDirPath() + "/" + this->filename; @@ -98,7 +98,7 @@ DynamicLibrary::DynamicLibrary(const char* filename) Constructor = (NULLARY_DYNAMIC_FUNCTION) handle->resolve(MAYBE_STDCALL_UNDERSCORE "GetConstructor" CALLING_CONVENTION_SUFFIX_VOID_FUNCTION); Metadata = (METADATA_FUNCTION) handle->resolve(MAYBE_STDCALL_UNDERSCORE "GetMetadata" CALLING_CONVENTION_SUFFIX_VOID_FUNCTION); #else - QByteArray latin1 = fullPath.toLatin1(); + QByteArray latin1 = QFile::encodeName(filename); handle = dlopen(latin1.constData(), RTLD_NOW | # ifdef __linux RTLD_DEEPBIND |