Bug 313700 - Okular can't read synctex files from utf8(non-ascii) directories
Summary: Okular can't read synctex files from utf8(non-ascii) directories
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL: https://bugzilla.redhat.com/show_bug....
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-22 18:04 UTC by Hedayat Vatankhah
Modified: 2013-01-22 23:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.0


Attachments
A sample two page document. (4.07 KB, application/x-tex)
2013-01-22 19:53 UTC, Hedayat Vatankhah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hedayat Vatankhah 2013-01-22 18:04:40 UTC
I am trying to use Kile+Okular under Fedora 18 to write using XeLaTeX. I use SyncTex to synchronize these two applications. It worked fine in Fedora 15, but since 16 it doesn't work. Investigating a bit, I found that Okular have problems with reading synctex data from the directory with utf8 characters in its name. This is the result when I try to open okular manually: 

-----------------
[hedayat@hedayat-lap ~]% /usr/bin/okular --unique "file:/mnt/hedayat/درس<200c>ها/پروژه پایانی/final_report/thesis.pdf#src:1599/mnt/hedayat/درس<200c>ها/پروژه پایانی/final_report/thesis.tex"
SyncTeX Warning: No tag for /mnt/hedayat/??????/????? ??????/final_report/thesis.tex
-----------------

As can be seen, it replaces utf8 characters with '?', and then it is unable to load synctex data.



Reproducible: Always

Steps to Reproduce:
1. create a tex document using Kile in a directory with non-latin characters.
2. Configure Kile's build options for PDFLatex/XeLaTeX to use "Modern" build (which generates SyncTeX data)
3. Compile your document using PDFLatex or XeLaTeX
4. Try ForwardPDF
Actual Results:  
Document opens in Okular, but it doesn't go the the same line as you are in Kile.

Expected Results:  
It should open the document on the same line as where you are in Kile in the document.

It seems to be independent of the active locale, and happens in en_US.utf8 locale too.
Comment 1 Albert Astals Cid 2013-01-22 18:38:06 UTC
Can you please exactly say how step 2 is done?
Also a sample document for trying would help :-)
Comment 2 Hedayat Vatankhah 2013-01-22 19:53:31 UTC
Created attachment 76644 [details]
A sample two page document.
Comment 3 Hedayat Vatankhah 2013-01-22 19:58:06 UTC
And about the step 2: 
2.1. Open Kile->Settings->Configure Kile->Build(under Tools)
2.2. Select 'PDFLaTeX' under "Select a tool" column
2.3. Change the configuration from 'Default' to 'Modern' in the right column under "Choose a configuration for the tool PDFLaTeX" (Select: )
Comment 4 Albert Astals Cid 2013-01-22 23:03:10 UTC
Git commit 00cbba3ecec708cb147e990112bb3074778eca65 by Albert Astals Cid.
Committed on 23/01/2013 at 00:02.
Pushed by aacid into branch 'KDE/4.10'.

Propertly encode the filename
FIXED-IN: 4.10.0

M  +1    -1    generators/poppler/generator_pdf.cpp

http://commits.kde.org/okular/00cbba3ecec708cb147e990112bb3074778eca65