2006-10-09 Denis Pilat * tui-source.c (tui_set_source_content): handle source files that contain non unix end-of-line. Index: tui/tui-source.c =================================================================== --- tui/tui-source.c (revision 528) +++ tui/tui-source.c (working copy) @@ -194,6 +194,13 @@ tui_set_source_content (struct symtab *s chars until we do */ while (c != EOF && c != '\n' && c != '\r') c = fgetc (stream); + /* Handle non-'\n' end-of-line. */ + if (c == '\r' && (c = fgetc (stream)) != '\n') + { + ungetc (c, stream); + c = '\r'; + } + } } while (c != EOF && c != '\n' && c != '\r' &&