@@ -23,22 +23,22 @@ # include #endif #import "OFPlugin.h" #import "OFString.h" -#import "OFSystemInfo.h" +#import "OFLocalization.h" #import "OFInitializationFailedException.h" typedef OFPlugin* (*init_plugin_t)(void); of_plugin_handle_t of_dlopen(OFString *path, int flags) { #ifndef OF_WINDOWS - return dlopen([path cStringWithEncoding: - [OFSystemInfo native8BitEncoding]], flags); + return dlopen([path cStringWithEncoding: [OFLocalization encoding]], + flags); #else if (path == nil) return GetModuleHandle(NULL); return LoadLibraryW([path UTF16String]);