[vlc-devel] commit: windows: Convert vlc directory path to UTF8 ( Rafaël Carré )

git version control git at videolan.org
Thu Dec 3 10:49:33 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Thu Dec  3 05:44:31 2009 +0100| [e519d5ff95424c7d61ce47b76823113e690b97d8] | committer: Rafaël Carré 

windows: Convert vlc directory path to UTF8

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e519d5ff95424c7d61ce47b76823113e690b97d8
---

 src/misc/win32_specific.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c
index ea294ed..e341bae 100644
--- a/src/misc/win32_specific.c
+++ b/src/misc/win32_specific.c
@@ -57,7 +57,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
     wchar_t psz_wpath[MAX_PATH];
     if( GetModuleFileName( NULL, psz_wpath, MAX_PATH ) )
     {
-        WideCharToMultiByte( CP_ACP, 0, psz_wpath, -1,
+        WideCharToMultiByte( CP_UTF8, 0, psz_wpath, -1,
                              psz_path, MAX_PATH, NULL, NULL );
     }
     else psz_path[0] = '\0';




More information about the vlc-devel mailing list