[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#74862: tetex-bin: makeindex does not like DOS line-endings



Hi Thomas,

here is an other patch for makeindexk. The problem, described in
http://bugs.debian.org/74862, is that when an *.ist file contains
DOS-like line endings, makeindex gets confused and produces an *.ind
file with syntax errors. You can easily reproduce this with

unix2dos scrguide.ist
latex scrguide2
makeindex -s scrguide scrguide2
latex scrguide2

The more common case, of course, won't be somebody running unix2dos, but
rather files on CTAN that contain these endings.

Hilmar as implemented a simple patch - we simply assume that we should
add an "or Carriage Return" at each place where LFD is used. He writes:

> This is a stupid implementation of the ideas given. I've checked with
> ist-files with ^M (pure and mixture [some lines has ^M, some not])
> and ist-files with pure UNIX-enter signs. makeindex works and LaTeX
> runs smoothly. I didn't check if the dvi-file still remains the same,
> however the size didn't change and a strings command over both
> dvi-files differs only in the time stamp.

Since there is no upstream - will you apply such a patch to teTeX and/or
TeXlive sources? Do you think somebody should look closer at the code
and understand what each changed line really does under which
circumstances (I guess Hilmar didn't, that's why you call it stupid,
isn't it)?

Regards, Frank

-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie




Reply to: