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

Rémi Denis-Courmont remi at remlab.net
Sat Dec 5 15:39:55 CET 2009


Le jeudi 3 décembre 2009 11:49:33 git version control, vous avez écrit :
> 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=e519d5ff95424c7d61
> >ce47b76823113e690b97d8
> 
> ---
> 
>  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 );

FromWide() ?

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list