PDF import preview image is empty if filename contains non-Ascii character

Bug #909783 reported by Alvin Penner on 2011-12-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Johan Engelen

Bug Description

- running Windows 7, Inkscape 0.48.2
- reproduced on Windows XP, Inkscape rev 10794

when opening a PDF file one gets a preview window with options to choose on import. The preview image is blank if the filename has non-Ascii character, sample attached. Also get the console warning:
Error: Couldn't open file 'C:\Windows\Temp\Täble1b.pdf': No such file or directory.

The file does load normally after the preview is closed.

Alvin Penner (apenner) wrote :
su_v (suv-lp) wrote :

On Mac OS X 10.5.8 Leopard (32bit) and OS X 10.7.2 Lion (64bit)
with Inkscape 0.48.2 and 0.48+devel r10801:
1) Reproduced when opening the PDF file from the command line:
   $ inkscape 909783-Täble1b.pdf
but without console warnings. The Preview in the import dialog is empty, but when clicking on 'OK' the PDF file is opened correctly in Inkscape, and the Window header shows the correct file name (including the a umlaut).

2) Not reproduced when opening the file from within the GUI (via 'File > Open') with either version on either platform.

tags: added: encoding importing pdf
Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Johan Engelen (johanengelen) wrote :

fixed. please check on linux and mac.

Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
importance: Low → Undecided
milestone: none → 0.48.3
status: Confirmed → Fix Committed
importance: Undecided → Low
Alvin Penner (apenner) wrote :

works well on Windows, thanks Johan!

su_v (suv-lp) wrote :

> fixed. please check on linux and mac.

Not fixed (nothing has changed) on OS X Lion: as before, preview is missing when opening the PDF file from the command line (locale is "en_US.UTF-8").
Opening the PDF file from within the GUI works as it did before (showing the preview thumbnail as expected).

su_v (suv-lp) wrote :

@JazzyNico - would you mind to test on linux?

jazzynico (jazzynico) wrote :

On Ubuntu 11.04, bzr revision 10804:

Fixed when launching from the command line with the full path ( #inkscape /test/Täble1b.pdf).
Not fixed when using a relative path (#cd /test ; inkscape Täble1b.pdf).

No problem when opening with the UI.

su_v (suv-lp) wrote :

> Fixed when launching from the command line with
> the full path ( #inkscape /test/Täble1b.pdf).

Good catch (and confirmed), but AFAICT this was not affected by the change in r10803: Inkscape 0.48.2 already shows the same behavior (preview ok with absolute path name, not ok with relative path name).

Chilllida:test $ inkscape -V
Inkscape 0.48.2 r9819 (Dec 21 2011)
Chilllida:test $ # missing preview:
Chilllida:test $ inkscape bug/909783-Täble1b.pdf
Chilllida:test $ # this is ok:
Chilllida:test $ inkscape /Volumes/cyan/test/bug/909783-Täble1b.pdf

Alvin Penner (apenner) wrote :

it appears that these two issues are unrelated. On Windows XP, using the latest rev, I can make the preview image fail if I use a relative path in the command line argument, regardless of what the filename is. Even if it has no non-Ascii characters it will still fail with a relative path.

Ted Gould (ted) on 2012-02-15
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments