#include <vlc_common.h>
#include <vlc_plugin.h> /* MODULE_SUFFIX */
+#include <vlc_charset.h>
#include "libvlc.h"
#include "modules.h"
# else
const int flags = 0;
# endif
+ char *path = ToLocale( psz_file );
- handle = dlopen( psz_file, flags );
+ handle = dlopen( path, flags );
+ LocaleFree( path );
if( handle == NULL )
{
- msg_Warn( p_this, "cannot load module `%s' (%s)",
- psz_file, dlerror() );
+ msg_Warn( p_this, "cannot load module `%s' (%s)", path, dlerror() );
return -1;
}