* This files handles locale conversions in vlc
*/
+/* iconv wrappers (defined in src/extras/libc.c) */
+typedef void *vlc_iconv_t;
+VLC_EXPORT( vlc_iconv_t, vlc_iconv_open, ( const char *, const char * ) LIBVLC_USED );
+VLC_EXPORT( size_t, vlc_iconv, ( vlc_iconv_t, const char **, size_t *, char **, size_t * ) LIBVLC_USED );
+VLC_EXPORT( int, vlc_iconv_close, ( vlc_iconv_t ) );
+
#include <stdarg.h>
VLC_EXPORT( void, LocaleFree, ( const char * ) );
VLC_EXPORT( void *, vlc_memalign, ( void **base, size_t alignment, size_t size ) LIBVLC_USED );
-/* iconv wrappers (defined in src/extras/libc.c) */
-typedef void *vlc_iconv_t;
-VLC_EXPORT( vlc_iconv_t, vlc_iconv_open, ( const char *, const char * ) LIBVLC_USED );
-VLC_EXPORT( size_t, vlc_iconv, ( vlc_iconv_t, const char **, size_t *, char **, size_t * ) LIBVLC_USED );
-VLC_EXPORT( int, vlc_iconv_close, ( vlc_iconv_t ) );
-
/* execve wrapper (defined in src/extras/libc.c) */
VLC_EXPORT( int, vlc_execve, ( vlc_object_t *p_object, int i_argc, char *const *pp_argv, char *const *pp_env, const char *psz_cwd, const char *p_in, size_t i_in, char **pp_data, size_t *pi_data ) LIBVLC_USED );
#define vlc_execve(a,b,c,d,e,f,g,h,i) vlc_execve(VLC_OBJECT(a),b,c,d,e,f,g,h,i)
#include <vlc_strings.h>
#include <vlc_dialog.h>
#include <vlc_memory.h>
+#include <vlc_charset.h>
#include <math.h>
if( i_in_bytes )
{
msg_Warn( p_filter, "failed to convert string to unicode (%m), "
- "bytes left %u", (unsigned)i_in_bytes );
+ "bytes left %zu", i_in_bytes );
goto error;
}
*(uint32_t*)p_out_buffer = 0;