[vlc-devel] commit: taglib: Fix opening of filenames on non-UTF8 systems. ( Derk-Jan Hartman )

Rémi Denis-Courmont rem at videolan.org
Sun Aug 17 18:41:53 CEST 2008


Le dimanche 17 août 2008 19:10:51 git version control, vous avez écrit :
> +        wchar_t wpath[MAX_PATH + 1];
> +        if( !MultiByteToWideChar( CP_UTF8, 0, p_demux->psz_path, -1,
> wpath, MAX_PATH) ) +        {
> +            errno = ENOENT;
> +            return VLC_EGENERIC;
> +        }
> +        wpath[MAX_PATH] = L'0';
> +        FileRef f( wpath );

Err hmm, are you sure taglib expects wide character file names on Win32 ?? 
Looks very odd.

-- 
Rémi Denis-Courmont
http://git.remlab.net/cgi-bin/gitweb.cgi?p=vlc-courmisch.git;a=summary



More information about the vlc-devel mailing list