@@ -23,10 +23,11 @@ # include #endif #import "OFPlugin.h" #import "OFString.h" +#import "OFSystemInfo.h" #import "OFInitializationFailedException.h" #ifdef _WIN32 # define dlsym(handle, symbol) GetProcAddress(handle, symbol) @@ -45,11 +46,11 @@ path = [path stringByAppendingString: @PLUGIN_SUFFIX]; #ifndef _WIN32 if ((handle = dlopen([path cStringWithEncoding: - [OFString nativeOSEncoding]], RTLD_LAZY)) == NULL) + [OFSystemInfo native8BitEncoding]], RTLD_LAZY)) == NULL) #else if ((handle = LoadLibraryW([path UTF16String])) == NULL) #endif @throw [OFInitializationFailedException exceptionWithClass: self];