Bug 228551 - eps picture in dvi is not shown when picture path contains non-latin letters
Summary: eps picture in dvi is not shown when picture path contains non-latin letters
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: DVI backend (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 241761 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-25 23:52 UTC by oleg motygin
Modified: 2010-06-14 21:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example of tex-file (130 bytes, text/plain)
2010-02-26 09:21 UTC, oleg motygin
Details
example (1.58 KB, application/zip)
2010-02-26 09:32 UTC, oleg motygin
Details
example (1.58 KB, application/zip)
2010-02-26 09:34 UTC, oleg motygin
Details
patch to fix nonlatin eps paths (496 bytes, patch)
2010-03-26 02:46 UTC, Glen Kaukola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oleg motygin 2010-02-25 23:52:50 UTC
Version:            (using KDE 4.3.5)
OS:                Linux
Installed from:    Unspecified Linux

Okular does not show eps pictures inserted into dvi with \includegraphics{foo.eps} (PS specials) if the full path to the eps-file contains non-latin letters (in my system LANG=ru_RU.UTF-8). When these (dvi and eps) files are moved to a directory with latin path or Okular is invoked with LANG=C, everything works properly. The same problem appears in Kdvi (Kde 3.5.10).

Some investigation shows that the temporary ps-file, which Okular produces for rasterizing, contains `?' instead of non-latin letters in the paths to eps-files.
Comment 1 Albert Astals Cid 2010-02-26 00:49:08 UTC
can you please attach some example files and also write some dir names so we can test with the same conditions you do?
Comment 2 oleg motygin 2010-02-26 09:21:32 UTC
Created attachment 41128 [details]
example of tex-file
Comment 3 oleg motygin 2010-02-26 09:32:03 UTC
Created attachment 41129 [details]
example
Comment 4 oleg motygin 2010-02-26 09:34:03 UTC
Created attachment 41130 [details]
example
Comment 5 oleg motygin 2010-02-26 09:38:52 UTC
The directory to check the attached files has to have a non-latin name (for me it is for example Проба).
Comment 6 Albert Astals Cid 2010-03-25 21:04:36 UTC
You mean that with a latin name in the directory it works?
Comment 7 Albert Astals Cid 2010-03-25 21:12:49 UTC
Meh i should read the bug before commenting, sorry :-/
Comment 8 Glen Kaukola 2010-03-26 02:46:08 UTC
Created attachment 42268 [details]
patch to fix nonlatin eps paths

I just dropped the QString::toLatin1() conversion on the eps file paths.  No idea if this will have any unwanted side effects however.
Comment 9 Glen Kaukola 2010-03-27 00:47:01 UTC
SVN commit 1107836 by glenkaukola:

Fix for the dvi generator issue with .eps files that have non-latin characters in the path.
Fix only in KDE > 4.5.
BUG: 228551


 M  +2 -2      psgs.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1107836
Comment 10 Albert Astals Cid 2010-06-14 21:37:31 UTC
*** Bug 241761 has been marked as a duplicate of this bug. ***