[vlc-devel] [vlc-commits] commit: Win32: use Unicode output for the console (fixes #3125) ( Rémi Denis-Courmont )

Jean-Baptiste Kempf jb at videolan.org
Fri Jul 23 01:26:34 CEST 2010


On Thu, Jul 22, 2010 at 07:35:16PM +0200, git at videolan.org wrote :
> vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 22 20:34:39 2010 +0300| [2b67ce72a9cbf2279bf8f6f769984aca968fe1f6] | committer: Rémi Denis-Courmont 
> 
> Win32: use Unicode output for the console (fixes #3125)
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b67ce72a9cbf2279bf8f6f769984aca968fe1f6
> ---
> 
>  src/text/unicode.c |   41 +++++++++++++++++++++++++++++++++++++++--
>  1 files changed, 39 insertions(+), 2 deletions(-)
> 
> diff --git a/src/text/unicode.c b/src/text/unicode.c
> index bb1ec6b..6639328 100644
> --- a/src/text/unicode.c
> +++ b/src/text/unicode.c
> @@ -223,8 +223,45 @@ static int utf8_vasprintf( char **str, const char *fmt, va_list ap )
>  int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
>  {
>      char *str;
> -    int res = utf8_vasprintf( &str, fmt, ap );
> -    if( res == -1 )
> +    int res;
> +
> +#ifdef WIN32

Maybe we should add a && !defined (UNDER_CE ) because this breaks WinCE
and I doubt WinCE has a console.


Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list