[vlc-commits] skins2: remove a leftover call to FromLocale()
Erwan Tulou
git at videolan.org
Fri Jun 12 21:48:57 CEST 2015
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Jun 12 11:32:06 2015 +0200| [58eb9328ed1daa2701c040dc9f076f08dca9b396] | committer: 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)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=58eb9328ed1daa2701c040dc9f076f08dca9b396
---
modules/gui/skins2/src/theme_repository.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/gui/skins2/src/theme_repository.cpp b/modules/gui/skins2/src/theme_repository.cpp
index 0efb378..1f29f6e 100644
--- a/modules/gui/skins2/src/theme_repository.cpp
+++ b/modules/gui/skins2/src/theme_repository.cpp
@@ -135,17 +135,14 @@ ThemeRepository::~ThemeRepository()
}
-void ThemeRepository::parseDirectory( const string &rDir_locale )
+void ThemeRepository::parseDirectory( const string &rDir )
{
const char *pszDirContent;
// Path separator
const string &sep = OSFactory::instance( getIntf() )->getDirSeparator();
// 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() );
-
if( pDir == NULL )
{
// An error occurred
More information about the vlc-commits
mailing list