diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/tiff/tiff-document.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index 9c113b49..cb4ebada 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -95,7 +95,21 @@ tiff_document_load (EvDocument *document, return FALSE; push_handlers (); + +#ifdef G_OS_WIN32 +{ + wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, error); + if (wfilename == NULL) { + return FALSE; + } + + tiff = TIFFOpenW (wfilename, "r"); + + g_free (wfilename); +} +#else tiff = TIFFOpen (filename, "r"); +#endif if (tiff) { guint32 w, h; |