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

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



Hilmar Preusse <hille42@web.de> 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.


FWIW, should the occurrences in scanid.c be chaned as well (I'm
not sure what it does, maybe the problem doesn't occur there, but
maybe for consistency ...) and the following two macros, in the
same fashion:

from scanid.h:

#define STY_SKIPLINE { \
    int a; \
    while ( ((a = GET_CHAR(sty_fp)) != LFD) && (a != EOF) ); \
    sty_lc++; \
}

from scanst.h:

#define IDX_SKIPLINE { \
    int tmp; \
    while ((tmp = GET_CHAR(idx_fp)) != LFD) \
	if (tmp == EOF) \
	    break; \
    idx_lc++; \
    arg_count = -1; \
}

(I think the while() condition could be identical in both cases).

-- 
Stefan Ulrich



Reply to: