---- libass/libass/ass_fontselect.c.orig	2016-04-07 14:00:48.412620215 +0200
-+++ libass/libass/ass_fontselect.c	2016-04-07 14:51:29.220686538 +0200
+--- libass-0.13.4/libass/ass_fontselect.c.orig	2016-07-11 23:29:00.000000000 +0200
++++ libass-0.13.4/libass/ass_fontselect.c	2016-10-11 11:14:24.387661958 +0200
 @@ -47,6 +47,9 @@
  #include "ass_font.h"
  #include "ass_string.h"

+        MultiByteToWideChar (CP_UTF8, 0, utf8, -1, out, len);
+    return out;
+}
+
 static void load_fonts_from_dir(ASS_Library *library, const char *dir)
 {

 #define ABS(x) ((x) < 0 ? -(x) : (x))
 #define MAX_FULLNAME 100
 
@@ -161,28 +164,63 @@
     .destroy_font      = destroy_font_ft,
 };
 
+#ifdef _WIN32
+static inline char *FromWide (const wchar_t *wide)
+{
+    size_t len = WideCharToMultiByte (CP_UTF8, 0, wide, -1, NULL, 0, NULL, NULL);
