From: Hib Eris Date: Sat, 19 Mar 2011 17:21:06 +0000 (+0100) Subject: Bug 644928 – Use TIFFOpenW on windows X-Git-Tag: EVINCE_2_91_92~16 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=019c902c1e873aa465e877ae700f36eb94d04c45 Bug 644928 – Use TIFFOpenW on windows --- diff --git a/backend/tiff/tiff-document.c b/backend/tiff/tiff-document.c index 1be2aece..c310b34a 100644 --- a/backend/tiff/tiff-document.c +++ b/backend/tiff/tiff-document.c @@ -91,7 +91,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;