#endif
#include <limits.h>
+#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
{
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);
# include "config.h"
#endif
+#include <errno.h>
#include <vlc_common.h>
#include <vlc_variables.h>
#include <vlc_filter.h> /* filter_sys_t */
}
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;
}