Commit 53b501a1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

iconv: use vlc_strerror_c()

parent 8f528e6d
......@@ -32,6 +32,7 @@
#endif
#include <limits.h>
#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
......@@ -308,7 +309,8 @@ static int OpenDecoder( vlc_object_t *p_this )
{
p_sys->iconv_handle = vlc_iconv_open ("UTF-8", encoding);
if (p_sys->iconv_handle == (vlc_iconv_t)(-1))
msg_Err (p_dec, "cannot convert from %s: %m", encoding);
msg_Err (p_dec, "cannot convert from %s: %s", encoding,
vlc_strerror_c(errno));
}
free (var);
......
......@@ -29,6 +29,7 @@
# include "config.h"
#endif
#include <errno.h>
#include <vlc_common.h>
#include <vlc_variables.h>
#include <vlc_filter.h> /* filter_sys_t */
......@@ -468,7 +469,8 @@ unsigned SetupText( filter_t *p_filter,
}
else
{
msg_Warn( p_filter, "failed to convert string to unicode (%m)" );
msg_Warn( p_filter, "failed to convert string to unicode (%s)",
vlc_strerror_c(errno) );
i_string_length = 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment