[evince] Bug 644928 – Use TIFFOpenW on windows
- From: Wouter Bolsterlee <wbolster src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Bug 644928 – Use TIFFOpenW on windows
- Date: Sat, 19 Mar 2011 17:21:50 +0000 (UTC)
commit 019c902c1e873aa465e877ae700f36eb94d04c45
Author: Hib Eris <hib hiberis nl>
Date: Sat Mar 19 18:21:06 2011 +0100
Bug 644928 â?? Use TIFFOpenW on windows
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 1be2aec..c310b34 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]