From 019c902c1e873aa465e877ae700f36eb94d04c45 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sat, 19 Mar 2011 18:21:06 +0100 Subject: [PATCH] =?utf8?q?Bug=20644928=20=E2=80=93=20Use=20TIFFOpenW=20on?= =?utf8?q?=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- backend/tiff/tiff-document.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- 2.43.0