Bug 243473 - inverse search from dvi to tex does not function if tex-file's path indicated in dvi contains non-latin letters
Summary: inverse search from dvi to tex does not function if tex-file's path indicated...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: DVI backend (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-03 00:31 UTC by oleg motygin
Modified: 2010-07-12 20:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Sample (185 bytes, application/x-gzip)
2010-07-06 16:02 UTC, oleg motygin
Details
Missing utf8 convertion in a string (25.99 KB, patch)
2010-07-12 11:42 UTC, Mathieu Lornac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oleg motygin 2010-07-03 00:31:22 UTC
Version:           unspecified (using KDE 4.3.5) 
OS:                Linux

Okular's inverse search does not function (no jump from DVI to TeX) in the following case:
DVI is supplied with specials for inverse search, e.g. by latexing with -src-specials option and the path to TeX file, indicated in the specials, contains non-latin characters (in my system LANG=ru_RU.UTF-8).

For example, let the full file path be /home/user/Проба/test.tex

Then inverse search in Okular works properly for dvi-file given by
latex -src-specials test.tex
and inverse search does not work for dvi-file given by
latex -src-specials /home/user/Проба/test.tex


Reproducible: Always
Comment 1 Albert Astals Cid 2010-07-05 18:27:57 UTC
Could you please attach a tar.gz with all the needed files to easily try to reproduce the bug?
Comment 2 oleg motygin 2010-07-06 16:02:54 UTC
Created attachment 48626 [details]
Sample

TeX file with a non-latin name. To be compiled with "latex -src-specials тест.tex". Inverse search in the resulting dvi file does not work.
Comment 3 Mathieu Lornac 2010-07-12 11:42:52 UTC
Created attachment 48794 [details]
Missing utf8 convertion in a string

The changement is at the line 520.
Comment 4 Albert Astals Cid 2010-07-12 20:14:58 UTC
Next time attach a svn diff output not the whole file ;-)
Comment 5 Albert Astals Cid 2010-07-12 20:15:20 UTC
SVN commit 1149143 by aacid:

Interpret the char as utf8, fixes inverse search from dvi to tex not working if tex-file's path indicated in dvi contains non-latin letters
Patch by mathieu lornac
BUGS: 243473


 M  +1 -1      dviRenderer_prescan.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1149143
Comment 6 Albert Astals Cid 2010-07-12 20:15:52 UTC
SVN commit 1149144 by aacid:

Backport r1149143 | aacid | 2010-07-12 19:26:02 +0100 (Mon, 12 Jul 2010) | 4 lines

Interpret the char as utf8, fixes inverse search from dvi to tex not working if tex-file's path indicated in dvi contains non-latin letters
Patch by mathieu lornac
BUGS: 243473


 M  +1 -1      dviRenderer_prescan.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1149144