Bug 25032

Summary: Loading PDF file fails if its path contains non-ascii characters
Product: poppler Reporter: Michael Schumacher <schumaml>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch
0001--glib-Use-PDFDoc-wchar_t-.-on-Windows.patch

Description Michael Schumacher 2009-11-11 06:38:37 UTC
This bug has been filed against GIMP, see https://bugzilla.gnome.org/show_bug.cgi?id=544560

While we are able to work around the problem in GIMP code, it would still nice to see this fixed in poppler. See https://bugzilla.gnome.org/show_bug.cgi?id=544560#c7 and https://bugzilla.gnome.org/show_bug.cgi?id=544560#c8 for hints about the reason and fix for this problem.
Comment 1 Carlos Garcia Campos 2009-11-11 07:10:12 UTC
Created attachment 31112 [details] [review]
Patch

Would this patch fix the problem? I can't test it and I have no idea about win32, so it's like a shoot in the dark.
Comment 2 Hib Eris 2009-12-31 10:40:23 UTC
Created attachment 32386 [details] [review]
0001--glib-Use-PDFDoc-wchar_t-.-on-Windows.patch

Hi Carlos,

Your patch did not work, because apparently you cannot use g_utf8_to_utf16() to convert to wchar_t when you are compiling with g++ (it only works with gcc).

I wrote this new patch based on yours, and it works for me with Evince.
Comment 3 Carlos Garcia Campos 2010-01-07 01:35:06 UTC
Pushed to poppler-0.12 and master. Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.