Commit 58eb9328 authored by Erwan Tulou's avatar Erwan Tulou

skins2: remove a leftover call to FromLocale()

- on Windows, the ressource paths are already UTF8 encoded. bug fixed
- on Linux, the function is a noop
- on OS2, config_GetDataDir() may need a fix (two paths, the former returns
locale, the latter UTF8)
parent 51299c84
...@@ -135,17 +135,14 @@ ThemeRepository::~ThemeRepository() ...@@ -135,17 +135,14 @@ ThemeRepository::~ThemeRepository()
} }
void ThemeRepository::parseDirectory( const string &rDir_locale ) void ThemeRepository::parseDirectory( const string &rDir )
{ {
const char *pszDirContent; const char *pszDirContent;
// Path separator // Path separator
const string &sep = OSFactory::instance( getIntf() )->getDirSeparator(); const string &sep = OSFactory::instance( getIntf() )->getDirSeparator();
// Open the dir // Open the dir
// FIXME: parseDirectory should be invoked with UTF-8 input instead!!
string rDir = sFromLocale( rDir_locale );
DIR *pDir = vlc_opendir( rDir.c_str() ); DIR *pDir = vlc_opendir( rDir.c_str() );
if( pDir == NULL ) if( pDir == NULL )
{ {
// An error occurred // An error occurred
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment