This way dvi and any other potential user gets it for free
The diff is huge, but the synctex files are just moves.
And the code in core/ is also mostly just a move from the generator_pdf.cpp code
Acked by Luigi
REVIEW: 120311
synctex_scanner_new_with_output_file() tries first to open the file in an
"unquoted mode"; if it fails, it tries again quoting the file name.
During the first attempt, the synctex_io_mode_t is passed as pointer and it
can be incremented, making the second attempt start from "rb" instead of "r".
The easiest solution is to reset the io_mode before doing the second open
attempt.
Bug seen, analyzed and patched by Albert Astals Cid.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1132526
Also update the patches we carry:
- new 00-fix-__synctex_open-declaration.diff: fix a misplaced function declaration
- new 00-disable-SYNCTEX_INLINE.diff: disable SYNCTEX_INLINE on !MSVC, to avoid compiling issues
- remove 02-fix-_synctex_error.diff: code is already present in SyncTeX
- refresh 01-fix-win32-define.diff, 03-fix-_synctex_scan_named.diff, 04-gcc-specify-printf-format.diff, 05-fix-error-formats.diff
svn path=/trunk/KDE/kdegraphics/okular/; revision=1129764