Bug#74862: tetex-bin: makeindex does not like DOS line-endings
Frank Küster <frank@debian.org> wrote:
> Then what is the right name in C files? Lines like this:
>
> (c != TAB) && (c != LFD) && (c != EOF))
>
> should probably be
>
> (c != TAB) && (c != LFD) && (c != "carriage return") && (c != EOF))
Well, it is 13. Or 0x0d. Or '\r'. TAB and LFD are not standard C macros,
either. They are defined in texk/makeindexk/mkind.h:
#define TAB '\t'
#define LFD '\n'
So, for consistency, you should perhaps go for this:
#define CRN '\r'
although I've never seen CRN written for Carriage Return. CR and LF are
very common, but Carriage Return in 3 letters, I don't know...
> I think the eps files I copy from the OSX boxes also have only those
> ^M's instead of newlines...
So, what is it all about when they say "MacOS X is Unix"? ;-)
--
Florent
Reply to: