* lex.c (java_read_unicode_collapsing_terminators): Handle case
where \r appears at EOF. Fixes PR java/7950.
From-SVN: r57258
+2002-09-17 Tom Tromey <tromey@redhat.com>
+
+ * lex.c (java_read_unicode_collapsing_terminators): Handle case
+ where \r appears at EOF. Fixes PR java/7950.
+
2002-09-16 Geoffrey Keating <geoffk@apple.com>
* java-tree.h (union lang_tree_node): Add chain_next option.
return a single line terminator. */
int dummy;
c = java_read_unicode (lex, &dummy);
- if (c != '\n')
+ if (c != '\n' && c != UEOF)
lex->unget_value = c;
/* In either case we must return a newline. */
c = '\n';