Skip to content

Commit

Permalink
Log warning on iconv utf8->codepage failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Nov 25, 2015
1 parent a26deb7 commit 340a3c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/win32/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <locale.h>
#include <ctype.h>
#include "../framework/mlt_properties.h"
#include "../framework/mlt_log.h"

int usleep(unsigned int useconds)
{
Expand Down Expand Up @@ -109,5 +110,6 @@ int mlt_properties_from_utf8( mlt_properties properties, const char *prop_name,
result = mlt_properties_set( properties, prop_name_out,
mlt_properties_get( properties, prop_name ) );
}
mlt_log_warning( NULL, "iconv failed to convert \"%s\" from UTF-8 to code page %u\n", prop_name, codepage );
return result;
}

0 comments on commit 340a3c0

Please sign in to comment.